1
2
3
4
5
6
7
8
9
10
11
12
void moveZeroes(int* nums, int numsSize) {
//int zeros = 0;
for(int i = numsSize-1;i >= 0;i--){
if(nums[i] == 0){
for(int j = i;j < numsSize-1;j++){
nums[j] = nums[j+1];
}
nums[numsSize-1] = 0;
//zeros++;
}
}
}