Arrays

Move Zeroes

easy
Given an integer array `nums`, move all 0s to the end while maintaining the relative order of non-zero elements. Modify the array in-place and return it.
Hint steps(0/2 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.