Given an array of non-negative integers representing the heights of buildings, find the maximum amount of water that can be stored between two buildings. The width between buildings at index i and j…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.