Mouse and Cheese (Weighted Maze)
CodingPhone, OnsiteSoftware EngineerReported Mar, 2026Medium Frequency
Company question banks are included with the Insider plan.
A mouse starts in the top-left cell (0, 0) of an m x n grid and wants to reach the cheese in the bottom-right cell (m - 1, n - 1). It may move one cell at a time up, down, left or right.
`grid[r]...