Amazon Interview QuestionSDE1s
- 2of 2 votes
You are given an array whose each element represents the height of the tower. The width of every tower is 1. It starts raining. How much water is collected between the towers?
Eg. [1,5,3,7,2] – then answer is 2 units between towers 5 and 7.
Interview Type: In-Person