Quiz: Trapping Rain Water

Test your understanding

Check Your Understanding

In the two-pointer approach for trapping rain water, why can you safely process the shorter side?

  1. A.Shorter buildings hold more water
  2. B.The taller side never contributes to water
  3. C.Water level at the shorter side is bounded by it, not the other side
  4. D.It reduces time complexity
Start the roadmap to answer the quizzes and solve the challenges