Return a new list where every 0 has been moved to the end, and all other values keep their original relative order. Do not change nums.
Example 1
Input:
move_zeros([0, 1, 0, 3, 12])
Output:
[1, 3, 12, 0, 0]
Example 2
Input:
move_zeros([0, 0])
Output:
[0, 0]
0 <= len(nums) <= 3 * 10**5-10**9 <= nums[i] <= 10**9No results yet
Run your code to check it against the examples, or submit to run every test.