Leetcode #283 Move Zeroes
Since we know that the array contains only zeros and non-zeros, we can solve it using the Two-Pointer approach in 2 iterations. Use the second pointer like an anchor which only moves after you have populated the desired values.
First iteration:
Fir...
michelletanpy.hashnode.dev1 min read