Given an array where each element is at most k positions away from its target sorted position, sort the array. Additionally, find the smallest number that appears at least k times in the array.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.