Given an array of 10,000 elements containing only the values 1, 2, and 3, sort the array in-place with O(n) time complexity and O(1) extra space. This is a variation of the Dutch National Flag…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.