![240](https://cdn2.jianshu.io/assets/default_avatar/8-a356878e44b45ab268a3b0bbaaadeeb7.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
理論基礎(chǔ) 動(dòng)態(tài)規(guī)劃五部曲 確定dp數(shù)組 遞推公式 dp數(shù)組如何初始化 確定遍歷順序 打印dp數(shù)組 509. 斐波那契數(shù) 本題比較簡(jiǎn)單,直接套用動(dòng)...
738.單調(diào)遞增的數(shù)字 738. 單調(diào)遞增的數(shù)字 - 力扣(LeetCode)[https://leetcode.cn/problems/mon...
435. 無重疊區(qū)間 435. 無重疊區(qū)間 - 力扣(LeetCode)[https://leetcode.cn/problems/non-ov...
860.檸檬水找零 860. 檸檬水找零 - 力扣(LeetCode)[https://leetcode.cn/problems/lemonad...
1005.K次取反后最大化的數(shù)組和 先將數(shù)組排序,依次將負(fù)數(shù)變?yōu)檎龜?shù)躯保,如果到了末尾旋膳,k還是大于0,那么需要判斷k的奇偶途事,如果是奇數(shù)验懊,那么將數(shù)組重...
122.買賣股票的最佳時(shí)機(jī)II 122. 買賣股票的最佳時(shí)機(jī) II - 力扣(LeetCode)[https://leetcode.cn/pro...
理論基礎(chǔ) 貪心算法的本質(zhì)是由局部最優(yōu)推到全局最優(yōu)碱工,沒有特定的套路 455.分發(fā)餅干 455. 分發(fā)餅干 - 力扣(LeetCode)[https...
491.遞增子序列 491. 非遞減子序列 - 力扣(LeetCode)[https://leetcode.cn/problems/non-de...
93.復(fù)原IP地址 93. 復(fù)原 IP 地址 - 力扣(LeetCode)[https://leetcode.cn/problems/resto...