Learn
Practice
Newsletter
Resources
Resume
New
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Longest Increasing Path in a Matrix
Bookmark
Input
Example 1 (ans=4)
Example 2 (ans=4)
Single Cell
2x2 Spiral
3x3 Mixed
Custom
matrix
=
[[9,9,4],[6,6,8],[2,1,1]]
Matrix (cell value shown, in-degree / level label below)
0
1
2
0
1
2
9
9
4
6
6
8
2
1
1
algo
master
.
io
Step:
Starting Longest Increasing Path. Matrix is 3x3.
0 / 20
Input
Example 1 (ans=4)
Example 2 (ans=4)
Single Cell
2x2 Spiral
3x3 Mixed
Custom
matrix
=
[[9,9,4],[6,6,8],[2,1,1]]
0 / 20
Matrix (cell value shown, in-degree / level label below)
0
1
2
0
1
2
9
9
4
6
6
8
2
1
1
algo
master
.
io
Step:
Starting Longest Increasing Path. Matrix is 3x3.