C - Mission Gotham
Gotham city is in danger. All the people from Gotham were airlifted and they are going to be dropped at different districts of a new safe city. There are $N$ districts located at position $(1, 2, \ldots, N)$ in a straight line in this newly built safe city. An **array(P)** is given which tells us about the maximum capacity of people that can be accommodated in the districts. There is a cond
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