Move All Zeros to the Beginning of the Array
We’re given an integer array,
nums. Move all zeroes, if any, to the left while maintaining the order of other elements in the array. All changes must be made in
nums itself; no return value is expected.
Let’s look at the following integer array: