← Amazon questions
CodingReported in a candidate post, Jul 2025

Trapping rain water

Filed under Amazon · Also reported at Accolite, Adobe, Brane Enterprises, CarTrade Tech Limited, CarWale, Celigo, Cloud Lending, Dell and 27 more

Given n non-negative integers representing an elevation map where each bar has width 1, compute how much rain water it can trap.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.