← All problemsSign in

Location of Dum E

Dum-E, the assistant robot of Tony Stark, has gone for feature updation. Tony wants to assess his newly added coding skills. He mounted Dum-E on a matrix of MxN (M rows: 1 to M from top to bottom and N columns: 1 to N from left to right) such that a cell in matrix is denoted by (m,n). The starting position the Dum-E is (Sm,Sn). Tony inputs T number of instructions in form of L,R,T,B indication

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