Mine Field
CodeChefOpen on judge ↗
Mine Field Johnny is standing at top-left corner (1,1) of a rectangular field of size RxC and his objective is to reach the bottom right corner (R,C) of the field. Johnny can only travel in 3 directions:- East, South, South east On each move he can move 1 unit in any of the chosen direction. He also cannot move out of the field. Now this wouldn't have been so difficult if the field wasn't rigged
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