Path With Maximum Minimum Value
Solve this the way you would in the interview: out loud, on a timer, with an AI interviewer asking follow-ups while you code. You get a scored report at the end.
Practice this as a mock interviewFree to start, no account neededProblem
You are given an m x n integer grid. A path starts at the top-left cell (0, 0), ends at the bottom-right cell (m - 1, n - 1), and moves one step at a time up, down, left or right. The score of a path is the smallest value among all cells it visits, including both endpoints.
Return the highest score achievable by any path.
Examples
Constraints
- 1 <= m, n <= 100
- 0 <= grid[i][j] <= 10^9
What the interviewer grades
A correct solution is one of five scores. The report also grades problem understanding (did you clarify inputs and edge cases before coding), problem solving, communication while you work, code quality, and testing. See a sample report, or read up on the pattern in the lessons.