Deep Dive

Dutch National Flag

75. Sort Colors · Arrays & Strings · 5 of 78

1/8

Sort 0s, 1s and 2s in one pass

20low mid0122131405high
In this lessonStep 1 of 8 · ← → keys
The question

Sort an array of 0s, 1s and 2s in place, in one pass.