Move all zeros to the end of an array, keeping the order of other elements.
MediumProblem Statement
Move all zeros to the end of an array, keeping the order of other elements.
Sample Input
[0, 1, 0, 3, 12]
Sample Output
[1, 3, 12, 0, 0]
Limits
Time: 2s · Memory: 256 MB