Tom collects cheese and catches Jerry on a grid
Filed under Yatra.com
The question
In a 0/1/2 matrix (blocked, open, cheese), Tom starts at (0,0) and must collect all cheese and catch Jerry at a given location optimally.
No write-up yet. Related questions below have one.
Related Yatra.com questions
Collected from public candidate posts and coding forums. Updated Nov 2026.