Move every zero to the end of an array while preserving the order of other values
Company: Microsoft
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Other
Overview: An array manipulation exercise: move every zero in an integer list to the end while preserving the relative order of the non-zero values. It checks careful in-place updates with constant extra memory and correct handling of lists that contain no zeros or nothing but zeros.
Read the full Microsoft Software Engineer interview experience this question came from