diyaaa19 / sort012

Design a sorting algorithm to arrange an array of 0s, 1s, and 2s in ascending order (Dutch National Flag Problem)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Input: [2, 0, 1, 1, 0, 2, 1, 0]

Output: [0, 0, 0, 1, 1, 1, 2, 2]

About

Design a sorting algorithm to arrange an array of 0s, 1s, and 2s in ascending order (Dutch National Flag Problem)


Languages

Language:Python 100.0%