You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sort an Array of 0s, 1s, and 2s in a Single Scan. This project provides an efficient solution to sort an array consisting only of 0s, 1s, and 2s using a single-pass algorithm (Dutch National Flag Algorithm) Three pointer. Given multiple test cases, the algorithm ensures optimal performance with a time complexity of O(N) and space complexity of O(1)