← All problemsSign in

SWACCHA BHARAT ABHIYAN

Under the Swaccha Bharat Abhiyan, Afzal decides to clean a park covered with garbage and leaves with a battery operated vacuum cleaner. The park is a 2 dimensional space with roads occupying some of its squares, such as the one shown in the figure below. The naming conventions are Cartesian with the origin square being named as (0,0). Afzal needs to clean the park with the following constraints: -

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