摘要: [Algo] 二维动态规划 fx1 - 暴力递归, fx2 - 记忆化搜索, fx3 - 严格位置依赖, fx4 - 状态压缩 1. 最小路径和 // 1. 最小路径和 // https://leetcode.cn/problems/minimum-path-sum/description/ int 阅读全文
posted @ 2025-01-07 17:27 yaoguyuan 阅读(19) 评论(0) 推荐(0)
摘要: [Algo] 一维动态规划 fx1 - 暴力递归, fx2 - 自顶向底动态规划(记忆化搜索), fx3 - 自底向顶动态规划(严格位置依赖) 1. 最低票价 // 1. 最低票价 // https://leetcode.cn/problems/minimum-cost-for-tickets/de 阅读全文
posted @ 2025-01-07 17:27 yaoguyuan 阅读(10) 评论(0) 推荐(0)