文章目录
预习周
第1课 数据结构和算法总览
第2课 训练准备和复杂度分析
第1周
第3课 数组、链表、跳表
实战练习题目 - Array
- https://leetcode-cn.com/problems/container-with-most-water/
- https://leetcode-cn.com/problems/move-zeroes/
- https://leetcode-cn.com/problems/climbing-stairs/
- https://leetcode-cn.com/problems/3sum/ (高频老题)
实战练习题目 - Linked List
解法固定,熟能生巧
- https://leetcode-cn.com/problems/reverse-linked-list/
- https://leetcode-cn.com/problems/swap-nodes-in-pairs
- https://leetcode-cn.com/problems/linked-list-cycle
- https://leetcode-cn.com/problems/linked-list-cycle-ii
- https://leetcode-cn.com/problems/reverse-nodes-in-k-group/
Homework
- https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/
- https://leetcode-cn.com/problems/rotate-array/
- https://leetcode-cn.com/problems/merge-two-sorted-lists/
- https://leetcode-cn.com/problems/merge-sorted-array/
- https://leetcode-cn.com/problems/two-sum/
- https://leetcode-cn.com/problems/move-zeroes/
- https://leetcode-cn.com/problems/plus-one/
第4课 栈、队列、优先队列、双端队列
预习题目
- https://leetcode-cn.com/problems/valid-parentheses/ - 最近相关性 —> 栈!
- https://leetcode-cn.com/problems/min-stack/
实战题目
- https://leetcode-cn.com/problems/largest-rectangle-in-histogram
- https://leetcode-cn.com/problems/sliding-window-maximum
Homework
- https://leetcode.com/problems/design-circular-deque
- https://leetcode.com/problems/trapping-rain-water/
第2周
第5课 哈希表、映射、集合
实战题目
- https://leetcode-cn.com/problems/valid-anagram/description/
- https://leetcode-cn.com/problems/group-anagrams/
- https://leetcode-cn.com/problems/two-sum/description/
- 小技巧养成收藏精选代码的习惯:
https://shimo.im/docs/R6g9WJV89QkHrDhr/read
第6课 树、二叉树、二叉搜索树
实战题目
- https://leetcode-cn.com/problems/binary-tree-inorder-traversal/
- https://leetcode-cn.com/problems/binary-tree-preorder-traversal/
- https://leetcode-cn.com/problems/n-ary-tree-postorder-traversal/
- https://leetcode-cn.com/problems/n-ary-tree-preorder-traversal/
- https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal/
第7课 泛型递归、树的递归
实战题目
- https://leetcode-cn.com/problems/climbing-stairs/
- https://leetcode-cn.com/problems/generate-parentheses/
实战题目
- https://leetcode-cn.com/problems/invert-binary-tree/description/
- https://leetcode-cn.com/problems/validate-binary-search-tree
- https://leetcode-cn.com/problems/maximum-depth-of-binary- tree
- https://leetcode-cn.com/problems/minimum-depth-of-binary-tree
- https://leetcode-cn.com/problems/serialize-and-deserialize- binary-tree/
Homework
- https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/
- https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
- https://leetcode-cn.com/problems/combinations/
- https://leetcode-cn.com/problems/permutations/
https://leetcode-cn.com/problems/permutations-ii/
第8课 分治、回溯
预习题目
实战题目
- https://leetcode-cn.com/problems/majority-element/description/ (简单、但是高频)
- https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/
- https://leetcode-cn.com/problems/n-queens/
第3周
第9课 深度优先搜索和广度优先搜索
实战题目
- https://leetcode-cn.com/problems/binary-tree-level-order-traversal/#/description
- https://leetcode-cn.com/problems/minimum-genetic-mutation/#/description
- https://leetcode-cn.com/problems/generate-parentheses/#/description
- https://leetcode-cn.com/problems/find-largest-value-in-each-tree-row/#/description
Homework
- https://leetcode-cn.com/problems/word-ladder/description/
- https://leetcode-cn.com/problems/word-ladder-ii/description/
- https://leetcode-cn.com/problems/number-of-islands/
- https://leetcode-cn.com/problems/minesweeper/description/
第10课 贪心算法
- https://leetcode-cn.com/problems/lemonade-change/description/
- https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/description/
- https://leetcode-cn.com/problems/assign-cookies/description/
- https://leetcode-cn.com/problems/walking-robot-simulation/description/
- https://leetcode-cn.com/problems/jump-game/
- https://leetcode-cn.com/problems/jump-game-ii/
第11课 二分查找
文章
https://blog.csdn.net/hongxue8888/article/details/102890259
实战题目
- https://leetcode-cn.com/problems/sqrtx/
- https://www.beyond3d.com/content/articles/8/ (扩展阅读)
- https://leetcode.com-cn/problems/valid-perfect-square/
Homework
- https://leetcode-cn.com/problems/search-in-rotated-sorted-array/
- https://leetcode-cn.com/problems/search-a-2d-matrix/
- https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array/