Move the zeros to the end
easyLists10 XP
Return a list with all the zeros of nums moved to the end, keeping the other numbers in their order.
Examples
- Input: nums = [0, 1, 0, 3, 12]Output: [1, 3, 12, 0, 0]
- Input: nums = [0]Output: [0]
Examples use JSON: true/false/null are True/False/None in Python.