← Paytm questions

Segregate 0s and 1s in an array

Filed under Paytm · Also reported at Athenahealth, Persistent, Reliance Jio, Toyota Connected

Given an array containing only 0s and 1s, rearrange it in-place so that all 0s come before all 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 Paytm questions

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