Available question text
Given a mouse in a grid, determine if the mouse can reach the cheese. The only way to manipulate the mouse is via two functions, move() and isCheese(). The move() function returns true and moves the mouse if the move is possible, and returns false otherwise. The isCheese() function returns true if the mouse is currently at the cheese and false otherwise. You only have one instantiation of the mouse class. You cannot access the graph outside of the methods provided. The graph may have walls and isn’t guaranteed to be any particular shape. Exactly one cheese exists, and it’s always possible to reach it.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 2 records
LinkedIn
Help Mouse Find the Cheese
Reported Mar 23, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View sourceMeta
Help Mouse Find the Cheese
Reported Aug 1, 2026 · 22 source reports
MID_LEVEL, SENIOR, STAFF
Source snapshot: Nov 12, 2026
View source