← HashedIn questions
CodingMedium

Sort array of 0, 1, 2

Filed under HashedIn

The question

Sort an array containing 0s, 1s, and 2s, but with a specific order: 1s first, then 0s, then 2s.

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

Related HashedIn questions

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