Skip to content

Commit 8010a74

Browse files
refactor 283
1 parent 53b4295 commit 8010a74

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void moveZeroes(int[] nums) {
1919

2020
public static class Solution2 {
2121
public void moveZeroes(int[] nums) {
22-
//this solutoin is the most optimal since it minimizes the number of operations
22+
//this solution 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 (int i = 0, j = 0; i < nums.length && j < nums.length; j++) {
2525
if (nums[j] != 0) {

0 commit comments

Comments
 (0)