Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit34bec61

Browse files
fix build
1 parent372a76f commit34bec61

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
publicstaticclassSolution3 {
8282
publicvoidrotate(int[]nums,intk) {
83-
inttmp =0;
83+
inttmp;
8484
for (inti =0;i <k;i++) {
8585
tmp =nums[nums.length -1];
8686
for (intj =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)

[8]ページ先頭

©2009-2025 Movatter.jp