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 hintsTopics
Also asked at 48 companies
More Yandex Questions
Longest Subarray of 1's After Deleting One ElementMediumSummary RangesEasyString CompressionMediumFind K Closest ElementsMediumMaximize Distance to Closest PersonMedium
View all Yandex questions