摘要: 题源:leetcode 链接:https://leetcode-cn.com/problems/jump-game-ii/ 这次讨论两种解法,一个dp一个贪心 贪心的方法: 1 class Solution { 2 public: 3 int jump(vector<int>& nums) { 4 阅读全文
posted @ 2021-08-03 16:03 Danae丶 阅读(44) 评论(0) 推荐(0)
摘要: 题源:leetcode 链接:https://leetcode-cn.com/problems/longest-palindromic-substring/solution/zui-chang-hui-wen-zi-chuan-by-leetcode-solution/ 动态规划经典题 首先,每一个 阅读全文
posted @ 2021-08-03 09:35 Danae丶 阅读(34) 评论(0) 推荐(0)