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