Move Zeroes at Qualcomm

Easy63.5% acceptance

This problem has 75.0% frequency at Qualcomm.

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 Qualcomm Questions

View all Qualcomm questions