Move all 0s to the left and all 1s to the right of a binary array in one pass
Company: Toyota
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Rearrange an array of 0s and 1s in place so every 0 comes before every 1, using a single traversal of the array. It tests the two-pointer partition technique, loop invariants and constant extra space.