Back to problems

Minimum Time to Reach Bottom-Right in a Grid

Algorithm · ByteDance · Hard

Problem: Minimum Time to Travel to the Bottom-Right of a Grid (Minimize the Largest Cell Value) Given an integer matrix grid with m rows and n columns, grid[i][j] gives the time threshold (also interpretable as a height or time value) for position (i, j). Begin in the upper-left position (0, 0) and travel to the lower-right position (m-1, n-1). At each position, movement is allowed to any of its four adjacent cells: up, down, left, or right. Moving between cells takes no…

Checking your access…