Skip to content

Commit 64d8565

Browse files
refactor 189
1 parent 032030a commit 64d8565

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+2
-2
lines changed

src/main/java/com/fishercoder/solutions/_189.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public class _189 {
3131
public static class Solution1 {
3232
/**
3333
* using an extra array of the same size to copy it
34-
* O(n) space
3534
* O(n) time
35+
* O(n) space
3636
*/
3737
public void rotate(int[] nums, int k) {
3838
int len = nums.length;
@@ -48,8 +48,8 @@ public void rotate(int[] nums, int k) {
4848

4949
public static class Solution2 {
5050
/**
51-
* O(1) space
5251
* O(n) time
52+
* O(1) space
5353
*/
5454
public void rotate(int[] nums, int k) {
5555
int tmp;

0 commit comments

Comments
 (0)