← Goldman Sachs questions

Move all 1s to the end of an array containing 0s and 1s

Filed under Goldman Sachs

Explain counting sort, and then provide the most optimized solution to move all 1s to the end of an array containing only 0s and 1s.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.