Municipality
CodeChefOpen on judge ↗
You are given a scenario of residential society where all buildings of different heights are connected together i.e. adjacent to each other without any gap .Continuous rain happened in that area for some days which lead to trapping of water. You are the head of municipal commission and now you are first step is to calculate how much water is trapped between the buildings in order to remove water f
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start