← Questions

Trapping rain water II

0
ChalkCodingLast asked Feb 2026

A coding interview question asked in Chalk's technical phone screen, last asked Feb 2026. It tests heaps, grids and bfs.

You get a 2D grid of cell heights. After heavy rain, water collects in the low parts of the grid; it can run off the outer edge, so a cell holds water only when it is walled in on every side by higher cells.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Chalk · Technical phone screen · Last asked Feb 2026

What it tests

heaps · grids · bfs

Your code and the AI tutor open when you unlock this question.