Reach your Hotel
CodeChefOpen on judge ↗
You have booked your OYO hotel and have to find a way to reach it. For simplicity, consider the map of the city as a 2-D grid G of size \(R * C\). You are currently at position M and your hotel is at position P in the grid. Cells denoted as B represent blocked roads and are not accessible. All other cells in the grid are . (dot) symbols denoting that they are accessible. Note that if your curre
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