The Jumping Game
CodeChefOpen on judge ↗
Kiran is playing a Jumping game. He is playing the game on a flat surface $XY$. Initially, Kiran's position is at the center $(x,y)$ = $(0,0)$. He can jump one unit of length and the direction of the jump is either upside $U$,downside $D$, rightside $R$, or leftside $L$. You are given jumping sequence of Kiran as a string, contains only $UDLR$ characters. Now your task is to find out, at 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