Move Zeroes at Yandex

Easy63.5% acceptance

This problem has 75.0% frequency at Yandex.

Problem Description

Given an integer array `nums`, move all `0`'s to the end of it while maintaining the relative order of the non-zero elements. **Note** that you must do this in-place without making a copy of the array.

Read full problem and hints

Topics

Also asked at 48 companies


More Yandex Questions

View all Yandex questions