Help Sartaj
CodeChefOpen on judge ↗
Sartaj Singh is an honest Indian police officer, and he is set to fight against organised crime in Mumbai. But he got stuck in a maze while solving a case involving Mumbai mafia. The maze is a 2-D matrix with **N × M** cells. And the maze can be traversed only in a specific way (a repeating pattern starting from bottom left corner of maze) as shown below. ###Input - The first line contains an int
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