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

Commit8010a74

Browse files
refactor 283
1 parent53b4295 commit8010a74

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎src/main/java/com/fishercoder/solutions/_283.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void moveZeroes(int[] nums) {
1919

2020
publicstaticclassSolution2 {
2121
publicvoidmoveZeroes(int[]nums) {
22-
//thissolutoin is the most optimal since it minimizes the number of operations
22+
//thissolution is the most optimal since it minimizes the number of operations
2323
//the idea is to swap the non-zero element to the first zero number position
2424
for (inti =0,j =0;i <nums.length &&j <nums.length;j++) {
2525
if (nums[j] !=0) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp