Sort an array of 0s, 1s and 2s in O(1) extra space
Filed under Octro
The question
Sort an array containing only 0, 1 and 2 without extra space.
No write-up yet. Related questions below have one.
Related Octro questions
Collected from public candidate posts and coding forums. Updated Nov 2026.