LeetCode 題練習記錄

LeetCode 題練習

第一天
leetcode283-- 移動零

第二天
leetcode1–兩數之和

leetcode題庫11–盛最多水的容器

今天做了這兩道題,用到了map,使用空間換時間,應該會常常使用到。

第三天

leetcode題庫1314-- 矩陣區域和

第四天
leetcode題庫1370-- 上升下降字符串
leetcode題庫522 --最長特殊序列 II

第五天
leetcode題庫3-- 無重複字符的最長子串

第六天
leetcode題庫6-- Z 字形變換
leetcode題庫5-- 最長迴文子串
上面這題用到動態規劃和Manacher’s Algorithm 馬拉車算法。其中manacher算法有點意思哈,把迴文特點利用到極致。

第七天
leetcode題庫1014-- 最佳觀光組合

第八天
leetcode題庫53-- 最大子序和

第九天
leetcode題庫572 – 另一個樹的子樹

第十天
leetcode題庫221-- 最大正方形

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章