Perform three tasks: (1) Sort an array containing only 0s and 1s, (2) find the maximum element from an infinite data stream, and (3) find the k-th largest element in that stream.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.