cs.thefarshad
easy Two Pointers

Move Zeroes

Move all 0s to the end of `nums` while keeping the order of the non-zero elements, and return the resulting array. Example: [0, 1, 0, 3, 12] → [1, 3, 12, 0, 0].

runs in your browser