leetle

Daily challenge for 2025-04-14

104. Move Zeroes

Write a function solve that moves all zeroes to the end of an array while maintaining relative order of non-zero elements.

Example:
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]

Run this challenge interactively in Python or JavaScript when the app loads.