Stolen Phones
CodeChefOpen on judge ↗
A thief has stolen phones from Gada Electronics and is trying to make it to his hiding den. Jethalal is seeking help from the police but they are unable to catch him so the Tapu Sena has decided to take matters into their own hands and catch the criminal. The whole city can be divided into a grid of $n$*$m$ areas, the shop is situated in area $(1,1)$, and the hiding den is situated in area $(n,m
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