Problems / 2D Dynamic Programming / Longest Increasing Path in a Matrix
#117 Hard Time O(m·n) Space O(m·n) Animated

Longest Increasing Path in a Matrix

Find the longest increasing path in a matrix.

LeetCode ↗
Approach: DFS + Memoization
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps