Given a matrix where each cell contains a non-negative integer, you want to find the path from top-left to bottom-right (moving only right or down) that minimizes the maximum value encountered. Which algorithm is most appropriate?
-
A
Binary search combined with BFS/DFS
-
B
Dijkstra's algorithm with a min-heap
-
C
Standard dynamic programming (sum minimization)
-
D
Depth-first search with memoization