1102. Path With Maximum Minimum Value

https://leetcode.com/problems/path-with-maximum-minimum-value

Description

Given an m x n integer matrix grid, return the maximum score of a path starting at (0, 0) and ending at (m - 1, n - 1) moving in the 4 cardinal directions.

The score of a path is the minimum value in that path.

  • For example, the score of the path 8 → 4 → 5 → 9 is 4.

Example 1:

Example 2:

Example 3:

Constraints:

  • m == grid.length

  • n == grid[i].length

  • 1 <= m, n <= 100

  • 0 <= grid[i][j] <= 109

ac

Last updated

Was this helpful?