← All problemsSign in

Bhel Puri

You are in dire need of Bhel Puri. But you don’t know the exact way to reach the Bhel Puri shop. (Hint: The path from your home to the Bhel Puri shop is like a grid) You use your mobile’s GPS and it gives you instructions: $T,L,R,D$. Find the minimum cost path from top left to bottom right given that you can travel in the direction instructed by the GPS or move in a different direction and incur a

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