Given an array, find an element such that every element before it is smaller and every element after it is greater, i.e. an element already in its final sorted position with both sides strictly…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.