Given an array of integers, for each element, find the largest element on its left side that is strictly smaller than the current element. If no such element exists, output -1 for that position.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.