The TransCompilator

Solved LeetCode program · 75 of 1,000

#0075 · Sort Colors

Medium Array chunk-02.md

Original English source

The colors is a list of 2, 0, 2, 1, 1, and 0. Sort colors. For each color in colors, show color.

Open in Playground Browse all 1,000 problems

Expected stdout

0
0
1
1
2
2