DSA icon indicating copy to clipboard operation
DSA copied to clipboard

Dutch National Flag Algorithm

Open Sukhseerat-Kaur opened this issue 3 years ago • 1 comments

LC. 75. Sort Colors Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.

We will use the integers 0, 1, and 2 to represent the color red, white, and blue, respectively.

You must solve this problem without using the library's sort function.

Sukhseerat-Kaur avatar Oct 01 '21 11:10 Sukhseerat-Kaur