安利一波 推荐 极客时间算法训练营 超哥。
分门别类整理了一下,有需要的赶紧收藏。
1、数组、链表、跳表
实战练习题目 - Array
\1. https://leetcode-cn.com/problems/container-with-most-water/
\2. https://leetcode-cn.com/problems/move-zeroes/
\3. https://leetcode-cn.com/problems/climbing-stairs/
\4. https://leetcode-cn.com/problems/3sum/ (高频老题)
实战练习题目 - Linked List
\1. https://leetcode-cn.com/problems/reverse-linked-list/
\2. https://leetcode-cn.com/problems/swap-nodes-in-pairs
3.https://leetcode-cn.com/problems/linked-list-cycle
\4. https://leetcode-cn.com/problems/linked-list-cycle-ii
\5. https://leetcode-cn.com/problems/reverse-nodes-in-k-group/
Homework
\1. https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/
\2. https://leetcode-cn.com/problems/rotate-array/
\3. https://leetcode-cn.com/problems/merge-two-sorted-lists/
\4. https://leetcode-cn.com/problems/merge-sorted-array/
\5. https://leetcode-cn.com/problems/two-sum/
\6. https://leetcode-cn.com/problems/move-zeroes/
\7. https://leetcode-cn.com/problems/plus-one/
2、栈、队列、双端队列、优先队列
预习题目
\1. https://leetcode-cn.com/problems/valid-parentheses/
- 最近相关性 —> 栈!
\2. https://leetcode-cn.com/problems/min-stack/
实战题目
\1. https://leetcode-cn.com/problems/largest-rectangle-in
histogram
\2. https://leetcode-cn.com/problems/sliding-window-maximum
Homework
\1. https://leetcode.com/problems/design-circular-deque
\2. https://leetcode.com/problems/trapping-rain-water/
3、哈希表、映射、集合
实战题目
\1. https://leetcode-cn.com/problems/valid-anagram/description/
\2. https://leetcode-cn.com/problems/group-anagrams/
\3. https://leetcode-cn.com/problems/two-sum/description/
4、树、二叉树、二叉搜索树
实战题目
\1. https://leetcode-cn.com/problems/binary-tree-inorder-traversal/
\2. https://leetcode-cn.com/problems/binary-tree-preorder-traversal/
\3. https://leetcode-cn.com/problems/n-ary-tree-postorder-traversal/
\4. https://leetcode-cn.com/problems/n-ary-tree-preorder-traversal/
\5. https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal/
5、泛型递归、树的递归
实战题目
\1. https://leetcode-cn.com/problems/climbing-stairs/
\2. https://leetcode-cn.com/problems/generate-parentheses/
实战题目
\1. https://leetcode-cn.com/problems/invert-binary-tree/description/
\2. https://leetcode-cn.com/problems/validate-binary-search-tree
\3. https://leetcode-cn.com/problems/maximum-depth-of-binary
tree
\4. https://leetcode-cn.com/problems/minimum-depth-of-binary-tree
\5. https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/
Homework
\1. https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/
\2. https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
\3. https://leetcode-cn.com/problems/combinations/
\4. https://leetcode-cn.com/problems/permutations/
https://leetcode-cn.com/problems/permutations-ii/
6、分治、回溯
预习题目
\1. https://leetcode-cn.com/problems/powx-n/
\2. https://leetcode-cn.com/problems/subsets/
实战题目
\1. https://leetcode-cn.com/problems/majority-element/description/ (简单、但是高频)
\2. https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/
\3. https://leetcode-cn.com/problems/n-queens/
7、深度优先搜索和广度优先搜索
实战题目
\1. https://leetcode-cn.com/problems/binary-tree-level-order-traversal/#/description
\2. https://leetcode-cn.com/problems/minimum-genetic-mutation/#/description
\3. https://leetcode-cn.com/problems/generate-parentheses/#/description
\4. https://leetcode-cn.com/problems/fifind-largest-value-in-each-tree-row/#/description
Homework
\1. https://leetcode-cn.com/problems/word-ladder/description/
\2. https://leetcode-cn.com/problems/word-ladder-ii/description/
\3. https://leetcode-cn.com/problems/number-of-islands/
\4. https://leetcode-cn.com/problems/minesweeper/description/
8、贪心算法
Homework
\1. https://leetcode-cn.com/problems/lemonade-change/description/
\2. https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/description/
\3. https://leetcode-cn.com/problems/assign-cookies/description/
\4. https://leetcode-cn.com/problems/walking-robot-simulation/description/
\5. https://leetcode-cn.com/problems/jump-game/
https://leetcode-cn.com/problems/jump-game-ii/
9、二分查找
\1. https://leetcode-cn.com/problems/sqrtx/
https://www.beyond3d.com/content/articles/8/ (扩展阅读)
\2. https://leetcode.com-cn/problems/valid-perfect-square/
Homework
\1. https://leetcode-cn.com/problems/search-in-rotated-sorted-array/
\2. https://leetcode-cn.com/problems/search-a-2d-matrix/
\3. https://leetcode-cn.com/problems/fifind-minimum-in-rotated-sorted-array/
10、动态规划
实战题目
\1. https://leetcode-cn.com/problems/house-robber/
\2. https://leetcode-cn.com/problems/house-robber-ii/description/
\3. https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/#/description
https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/
https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii/
https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/
https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iv/
https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/
实战题目
\1. https://leetcode-cn.com/problems/perfect-squares/
\2. https://leetcode-cn.com/problems/edit-distance/ (重点)
\3. https://leetcode-cn.com/problems/jump-game/
\4. https://leetcode-cn.com/problems/jump-game-ii/
\5. https://leetcode-cn.com/problems/unique-paths/
\6. https://leetcode-cn.com/problems/unique-paths-ii/
\7. https://leetcode-cn.com/problems/unique-paths-iii/
\8. https://leetcode-cn.com/problems/coin-change/
\9. https://leetcode-cn.com/problems/coin-change-2/
Homework
1.https://leetcode-cn.com/problems/longest-valid-parentheses/
2.https://leetcode-cn.com/problems/minimum-path-sum/
3.https://leetcode-cn.com/problems/edit-distance/
4.https://leetcode-cn.com/problems/decode-ways
5.https://leetcode-cn.com/problems/maximal-square/
6.https://leetcode-cn.com/problems/max-sum-of-rectangle-no-larger-than-k/
7.https://leetcode-cn.com/problems/frog-jump/
8.https://leetcode-cn.com/problems/split-array-largest-sum
9.https://leetcode-cn.com/problems/student-attendance-record-ii/
10.https://leetcode-cn.com/problems/task-scheduler/
11.https://leetcode-cn.com/problems/palindromic-substrings/
12.https://leetcode-cn.com/problems/minimum-window-substring/
13.https://leetcode-cn.com/problems/burst-balloons/
11、字典树和并查集
实战题目
• https://leetcode-cn.com/problems/friend-circles
• https://leetcode-cn.com/problems/number-of-islands/
• https://leetcode-cn.com/problems/surrounded-regions/
12、高级搜索
实战练习
• https://leetcode-cn.com/problems/climbing-stairs/
• https://leetcode-cn.com/problems/generate-parentheses/
实战练习
\1. https://leetcode-cn.com/problems/n-queens/
\2. https://leetcode-cn.com/problems/valid-sudoku/description/
\3. https://leetcode-cn.com/problems/sudoku-solver/#/description
实战题目
\1. https://leetcode-cn.com/problems/word-ladder/
\2. https://leetcode-cn.com/problems/minimum-genetic-mutation/
实战题目
\1. https://leetcode-cn.com/problems/shortest-path-in-binary-matrix/
\2. https://leetcode-cn.com/problems/sliding-puzzle/
\3. https://leetcode-cn.com/problems/sudoku-solver/
13、高级树、AVL 树和红黑树
14、位运算
实战题目
• https://leetcode-cn.com/problems/number-of-1-bits/
• https://leetcode-cn.com/problems/power-of-two/
• https://leetcode-cn.com/problems/reverse-bits/
• https://leetcode-cn.com/problems/n-queens/description/
• https://leetcode-cn.com/problems/n-queens-ii/description/
15、布隆过滤器、LRU Cache
实战题目
• https://leetcode-cn.com/problems/lru-cache/#/
16、排序算法
实战题目
• https://leetcode-cn.com/problems/relative-sort-array/
• https://leetcode-cn.com/problems/valid-anagram/
• https://leetcode-cn.com/problems/design-a-leaderboard/
• https://leetcode-cn.com/problems/merge-intervals/
• https://leetcode-cn.com/problems/reverse-pairs/
17、高级动态规划
Homework
\1. https://leetcode-cn.com/problems/longest-increasing-subsequence/
\2. https://leetcode-cn.com/problems/decode-ways/
\3. https://leetcode-cn.com/problems/longest-valid-parentheses/
\4. https://leetcode-cn.com/problems/maximal-rectangle/
\5. https://leetcode-cn.com/problems/distinct-subsequences/
\6. https://leetcode-cn.com/problems/race-car/
18、字符串
字符串操作问题
\1. https://leetcode-cn.com/problems/longest-common-prefifix/description/
\2. https://leetcode-cn.com/problems/reverse-string
https://leetcode-cn.com/problems/reverse-string-ii/
\3. https://leetcode-cn.com/problems/reverse-words-in-a-string/
https://leetcode-cn.com/problems/reverse-words-in-a-string-iii/
\4. https://leetcode-cn.com/problems/reverse-only-letters/
Anagram异位词问题 - Homework
\1. https://leetcode-cn.com/problems/valid-anagram/
\2. https://leetcode-cn.com/problems/group-anagrams/
\3. https://leetcode-cn.com/problems/fifind-all-anagrams-in-a-string/
Palindrome 回文串问题
\1. https://leetcode-cn.com/problems/valid-palindrome/
\2. https://leetcode-cn.com/problems/valid-palindrome-ii/
\3. https://leetcode-cn.com/problems/longest-palindromic-substring/
\1. https://leetcode-cn.com/problems/fifirst-unique-character-in-a-string/
\2. https://leetcode-cn.com/problems/string-to-integer-atoi/
\3. https://leetcode-cn.com/problems/reverse-string-ii/
https://leetcode-cn.com/problems/reverse-words-in-a-string/
https://leetcode-cn.com/problems/reverse-words-in-a-string-iii/
\4. https://leetcode-cn.com/problems/reverse-only-letters/
\5. https://leetcode-cn.com/problems/fifind-all-anagrams-in-a-string/
\6. https://leetcode-cn.com/problems/longest-palindromic-substring/
https://leetcode-cn.com/problems/isomorphic-strings/
https://leetcode-cn.com/problems/valid-palindrome-ii/
\7. https://leetcode-cn.com/problems/wildcard-matching
\8. https://leetcode-cn.com/problems/longest-valid-parentheses
全部评论
(0) 回帖