โ† Western Digital questions

Segregate 0s and 1s, and sort an array of 0s, 1s, and 2s

Filed under Western Digital

The question

Modify an array containing 0s and 1s so all 0s appear before 1s. Then extend the solution in C to handle an array of 0s, 1s, and 2s.

No write-up yet. Related questions below have one.

Related Western Digital questions

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