Sort an array of 0s, 1s and 2s in O(1) space
Filed under Verifone
The question
Asked to sort an array of 0s, 1s and 2s, coding it in Java and running different test cases.
No write-up yet. Related questions below have one.
Related Verifone questions
Collected from public candidate posts and coding forums. Updated Nov 2026.