Longest Increasing Path in a Matrix Applying greedy by calc maxmium path sum

后端 未结 0 1120
挽巷
挽巷 2021-01-30 02:21
Input: nums = 
[
  [9,9,4],
  [6,6,8],
  [2,1,1]
] 
Output: 4 
Explanation: The longest increasing path is [1, 2, 6, 9].

Usually Greedy wont work for Lo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题