Placement in the City
CodeChefOpen on judge ↗
Dr. Rizwan is taking pre-placement test for 2nd and 3rd year students to determine the placement preparation of the students. For this purpose he has given you the problem given below. Can you prove yourself??? There are N buildings in the city in sequence having some height. You have to calculate the water which can be trapped in the city. ###Input: - First line will contain $N$, size o
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