← All problemsSign in

Geek needs Fitness

Geek Sundaram lives in Geek City. As he is an ardent coder, he never gets to go out and leads a sedentary lifestyle. One day he realises he is getting fat and decides to something about it. He decides to go jogging every morning. Geek City is a rectangular city with M X N grids. Each grid can be occupied by a building or can be empty. Occupied grids are marked using '#' and empty grids are denot

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