Corner Mark
CodeChefOpen on judge ↗
Question has been revised. Marc is Robot who can move in four directions left(L) ,right(R) ,up(U) ,down(D) based on instructions given to him. Marc is sitting in an unknown location in MxN grid of cells (M columns,N rows). Rules for following an instruction: If Marc can move in the direction specified he moves one cell in that direction. However, if he is already at the boundary, he ignores th
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