Sort an unsorted array containing only 0, 1, and 2
Filed under Infybeam
The question
Given an unsorted array consisting only of 0s, 1s, and 2s, sort the array efficiently.
No write-up yet. Related questions below have one.
Related Infybeam questions
Collected from public candidate posts and coding forums. Updated Nov 2026.