演算法總結-陣列和連結串列
1 連結串列
Dummy Node的應用
K組翻轉連結串列
http://www.lintcode.com/zh-cn/problem/reverse-nodes-in-k-group/
連結串列劃分
http://www.lintcode.com/zh-cn/problem/partition-list/
合併兩個排序連結串列
http://www.lintcode.com/zh-cn/problem/merge-two-sorted-lists/
翻轉連結串列
http://www.lintcode.com/zh-cn/problem/reverse-linked-list/
翻轉連結串列 II
交換連結串列當中兩個節點
http://www.lintcode.com/zh-cn/problem/swap-two-nodes-in-linked-list/
重排連結串列
http://www.lintcode.com/zh-cn/problem/reorder-list/
旋轉連結串列
http://www.lintcode.com/zh-cn/problem/rotate-list/
高頻題
複製帶隨機指標的連結串列
http://www.lintcode.com/zh-cn/problem/copy-list-with-random-pointer/
帶環連結串列
http://www.lintcode.com/zh-cn/problem/linked-list-cycle/
帶環連結串列 II
http://www.lintcode.com/zh-cn/problem/linked-list-cycle-ii/
連結串列排序
http://www.lintcode.com/en/problem/sort-list/
2 陣列
排序陣列
合併排序陣列
http://www.lintcode.com/zh-cn/problem/merge-sorted-array/
合併排序陣列 II
http://www.lintcode.com/zh-cn/problem/merge-two-sorted-arrays/
兩個排序陣列的中位數
http://www.lintcode.com/zh-cn/problem/median-of-two-sorted-arrays/
子陣列
最大子陣列
http://www.lintcode.com/zh-cn/problem/maximum-subarray/