Sonic And Paths
CodeChefOpen on judge ↗
Sonic's friend AKS has to come to visit Rourkela for INNOVISION, 2K17. It's been a long time since they have met, so Sonic decides to go to the station to pick him. The route from Sonic's college to the station can be considered as a (N X 1) grid where Sonic is at position (0, 0) and AKS is at position (N, 1). Sonic can go to adjacent co - ordinates in all possible directions except south - east a
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