Geek Room
CodeChefOpen on judge ↗
Geek Room is a square with N x N tiles. Geek wants to play with his RC car in this room. The battery of the car is of limited capacity. We say the capacity of the battery is C, when, from an initial tile, a car with full charge can reach a tile with Manhattan distance of atmost C from the initial tile, i.e, |Xf - Xs| + |Yf - Ys| f, Yf) are the co-ordinates of the final tile, (Xs, Ys) are the c
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