Merge pull request #208 from fecqs/patch-1

Update 0283.Move-Zeroes.md
This commit is contained in:
halfrost
2021-12-22 20:41:11 -08:00
committed by GitHub

View File

@ -44,10 +44,8 @@ func moveZeroes(nums []int) {
if nums[i] != 0 {
if i != j {
nums[i], nums[j] = nums[j], nums[i]
j++
} else {
j++
}
}
j++
}
}
}