← All problemsSign in

Avoiding Cameras

A team of robbers have entered the premises of the Bank of Chefland. The bank consists of a long corridor, with N cameras fitted along the corridor. To prevent being seen in the cameras, the robbers will generate K electric surges to disable the cameras. If a surge is generated between distance A and B (measured from one end of the corridor), then all cameras in the inclusive range get disabled.

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start