Given an array of building heights, identify buildings that can see the sunset. A building can see the sunset if it is strictly taller than all buildings to its right (or left, depending on…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.