数组、链表
- https://leetcode.cn/problems/reverse-linked-list/
- https://leetcode.cn/problems/linked-list-cycle
- https://leetcode.cn/problems/swap-nodes-in-pairs
- https://leetcode.cn/problems/linked-list-cycle-ii
- https://leetcode.cn/problems/reverse-nodes-in-k-group/
堆栈、队列
- https://leetcode.cn/problems/implement-queue-using-stacks/solution/
- https://leetcode.cn/problems/implement-stack-using-queues/description/
- https://leetcode.cn/problems/valid-parentheses/description/
优先队列(PriorityQueue)
- https://leetcode.cn/problems/kth-largest-element-in-astream/discuss/149050/Java-Priority-Queue
- https://leetcode.cn/problems/sliding-window-maximum/
哈希表(HashTable)
- https://leetcode.cn/problems/valid-anagram/description/
- https://leetcode.cn/problems/two-sum/description/
- https://leetcode.cn/problems/3sum/description/
- https://leetcode.cn/problems/4sum/
- https://leetcode.cn/problems/group-anagrams/description/
树、二叉树、二叉搜索树
- https://leetcode.cn/problems/validate-binary-search-tree
- https://leetcode.cn/problems/lowest-common-ancestorof-a-binary-search-tree/
- https://leetcode.cn/problems/lowest-common-ancestorof-a-binary-tree/
二叉树遍历
- 前序(Pre-order):根-左-右
- 中序(In-order):左-根-右
- 后序(Post-order):左-右-根
分治、递归、回溯
- https://leetcode.cn/problems/powx-n/description/
- https://leetcode.cn/problems/majority-element/description/
- https://leetcode.cn/problems/maximum-subarray/description/
- https://leetcode.cn/problems/valid-anagram/#/description
- https://leetcode.cn/problems/find-all-anagrams-in-a-string/#/description
- https://leetcode.cn/problems/anagrams/#/description
贪心算法(Greedy Algorithm)
- https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/description/
- https://leetcode.cn/problems/lemonade-change/description/
- https://leetcode.cn/problems/assign-cookies/description/
- https://leetcode.cn/problems/walking-robot-simulation/description/
深度优先DFS+广度优先BFS
- https://leetcode.cn/problems/binary-tree-level-order-traversal/
- https://leetcode.cn/problems/maximum-depth-of-binary-tree/
- https://leetcode.cn/problems/minimum-depth-of-binary-tree/description/
- https://leetcode.cn/problems/generate-parentheses/
剪枝
- https://leetcode.cn/problems/n-queens/
- https://leetcode.cn/problems/n-queens-ii/
- https://leetcode.cn/problems/valid-sudoku/description/
- https://leetcode.cn/problems/sudoku-solver/#/description
二分查找
- https://leetcode.cn/problems/sqrtx/
- https://leetcode.cn/problems/valid-perfect-square/
- https://www.beyond3d.com/content/articles/8/
字典树
- https://leetcode.cn/problems/implement-trie-prefix-tree/#/description
- https://leetcode.cn/problems/word-search-ii/
位运算
- https://leetcode.cn/problems/number-of-1-bits/
- https://leetcode.cn/problems/power-of-two/
- https://leetcode.cn/problems/counting-bits/description/
- https://leetcode.cn/problems/n-queens-ii/description/
动态规划
- https://leetcode.cn/problems/climbing-stairs/description/
- https://leetcode.cn/problems/triangle/description/
- https://leetcode.cn/problems/maximum-product-subarray/description/
- https://leetcode.cn/problems/best-time-to-buy-and-sell-stock/#/description
- https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/
- https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-iii/
- https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-iv/
- https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-with-cooldown/
- https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/
- https://leetcode.cn/problems/longest-increasing-subsequence
- https://leetcode.cn/problems/coin-change/
- https://leetcode.cn/problems/edit-distance/
并查集
- https://leetcode.cn/problems/number-of-islands/
- https://leetcode.cn/problems/friend-circles/
LRU Cache
- https://leetcode.cn/problems/lru-cache/#/