Skip to content

Commit 34bec61

Browse files
fix build
1 parent 372a76f commit 34bec61

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
@@ -80,11 +80,11 @@ public static void rotate(int[] nums, int k) {
8080

8181
public static class Solution3 {
8282
public void rotate(int[] nums, int k) {
83-
int tmp = 0;
83+
int tmp;
8484
for (int i = 0; i < k; i++) {
8585
tmp = nums[nums.length - 1];
8686
for (int j = nums.length - 1; j > 0; j--) {
87-
nums[j] = nums[j-1];
87+
nums[j] = nums[j - 1];
8888
}
8989
nums[0] = tmp;
9090
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy