Concept Flow - Rat in a Maze Problem
Start at (0,0)
Check if current cell is safe
Yes
Mark cell as path
Try move Down
→If success
No
Try move Right
→If success
No
Backtrack: Unmark cell
Return false
End or find path
The rat starts at the top-left cell, checks if it can move down or right safely, marks the path, and backtracks if stuck, until it reaches the bottom-right cell.
