You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: leetcode/329. Longest Increasing Path in a Matrix/README.md
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ Return `4`
27
27
The longest increasing path is `[3, 4, 5, 6]`. Moving diagonally is not allowed.
28
28
29
29
# Solution 1. DFS
30
+
30
31
Typical DFS. Use a `vector<vector<int>> cnt`, where `cnt[i][j]` is the length of longest increasing path starting from `matrix[i][j]`. Initially values in `cnt` are all zeroes.
0 commit comments