摘要: 思路:见题解https://leetcode cn.com/problems/arithmetic slices/solution/deng chai shu lie hua fen by leetcode/ python class Solution(object): def numberOfAr 阅读全文
posted @ 2019-09-04 16:39 Dolisun 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 思路: 新建一个跟数组一样大的dp表,dp[i][j]表示经过A[i][j]点时最小的路径和。 python class Solution(object): def minFallingPathSum(self, A): """ :type A: List[List[int]] :rtype: in 阅读全文
posted @ 2019-09-04 14:51 Dolisun 阅读(129) 评论(0) 推荐(0) 编辑