Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4-liner: remove all zeros and add them at the end solution in Clear category for Move Zeros by Stensen
def move_zeros(items: list[int]) -> list[int]:
cnt = items.count(0)
for i in range(cnt): items.remove(0)
return items + [0] * cnt
Sept. 29, 2022