8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 032030a commit 64d8565Copy full SHA for 64d8565
src/main/java/com/fishercoder/solutions/_189.java
@@ -31,8 +31,8 @@ public class _189 {
31
public static class Solution1 {
32
/**
33
* using an extra array of the same size to copy it
34
- * O(n) space
35
* O(n) time
+ * O(n) space
36
*/
37
public void rotate(int[] nums, int k) {
38
int len = nums.length;
@@ -48,8 +48,8 @@ public void rotate(int[] nums, int k) {
48
49
public static class Solution2 {
50
51
- * O(1) space
52
+ * O(1) space
53
54
55
int tmp;
0 commit comments