Sort an array of 0s, 1s and 2s without using a sorting routine
Filed under Athenahealth
The question
Given an array containing only 0s, 1s and 2s, sort it without actually using sorting; Python candidates must avoid built-in functions.
No write-up yet. Related questions below have one.
Related Athenahealth questions
Collected from public candidate posts and coding forums. Updated Nov 2026.