MilindGupta-Creator / Competitive-Coding-Section

Create sections labbled further in issue section
MIT License
21 stars 71 forks source link

added dutch national flag algorithm in cpp #112

Closed ERROR-jpg closed 2 years ago

ERROR-jpg commented 2 years ago

Added the famous dutch national flag algorith.

Q) Given an array of size N containing only 0s, 1s, and 2s; sort the array in ascending order in single pass. O(N) Time complexity