The Volunteers of The Avengers Club
CodeChefOpen on judge ↗
Mr. $X$ is the general secretary of the club, $'Avengers'$. Tomorrow there will be a fair in the club premises. He has $N$ number of volunteers with him. Each volunteer is sitting at a stall and also no two volunteers can sit at a single stall. Mr. $X$ wants to communicate only with the volunteers at the boundary stalls. He knows the locations of all the stalls. But tomorrow he will be so busy wi
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