11. Move Zeroes
EasyTwo pointers
Return nums with every 0 moved to the end while keeping the relative order of the non-zero elements. Try to do it in place.
Example 1
Input: nums = [0, 1, 0, 3, 12] Output: [1, 3, 12, 0, 0]
Constraints
1 ≤ nums.length ≤ 10⁴