字符串
- 无重复字符的最长子串 https://leetcode.cn/problems/longest-substring-without-repeating-characters/
49.字母异位词分组 https://leetcode.cn/problems/group-anagrams/
30.串联所有单词的子串 https://leetcode.cn/problems/substring-with-concatenation-of-all-words/
线性表
- 分隔链表 https://leetcode-cn.com/problems/partition-list/
- 最接近的三数之和 https://leetcode-cn.com/problems/3sum-closest/
- 移除元素 https://leetcode-cn.com/problems/remove-element/
- 我的日程安排表 III https://leetcode-cn.com/problems/my-calendar-iii/
数组、链表
- 反转链表 https://leetcode.cn/problems/reverse-linked-list/
- 环形链表 https://leetcode.cn/problems/linked-list-cycle
- 两两交换链表中的节点 https://leetcode.cn/problems/swap-nodes-in-pairs
- 环形链表 II https://leetcode.cn/problems/linked-list-cycle-ii
- K个一组翻转链表 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/
队列
- 设计循环双端队列 https://leetcode-cn.com/problems/design-circular-deque/
- 根据身高重建队列 https://leetcode-cn.com/problems/queue-reconstruction-by-height/
- 有序队列 https://leetcode-cn.com/problems/orderly-queue/
堆栈
- 验证栈序列 https://leetcode.cn/problems/validate-stack-sequences/
- 最大频率栈 https://leetcode.cn/problems/maximum-frequency-stack/
- 填充每个节点的下一个右侧节点指针 II https://leetcode.cn/problems/populating-next-right-pointers-in-each-node-ii/
- 最大频率栈 https://leetcode.cn/problems/maximum-frequency-stack/
优先队列(PriorityQueue)
- 数据流中的第 K 大元素 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/rotate-list/
- 我的日程安排表 I https://leetcode.cn/problems/my-calendar-i/
- K个一组翻转链表 https://leetcode.cn/problems/reverse-nodes-in-k-group
- 砖墙 https://leetcode.cn/problems/brick-wall/
树、二叉树、二叉搜索树
- 验证二叉搜索树 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):根-左-右 https://leetcode.cn/problems/binary-tree-preorder-traversal/
- 中序(In-order):左-根-右 https://leetcode.cn/problems/binary-tree-inorder-traversal/
- 后序(Post-order):左-右-根 https://leetcode.cn/problems/binary-tree-postorder-traversal/
分治、递归、回溯
- 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/
并查集
LRU Cache
深度优先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/
DFS:
- 统计封闭岛屿的数目 https://leetcode.cn/problems/number-of-closed-islands/
- 从前序与中序遍历序列构造二叉树 https://leetcode.cn/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
- 路径总和 https://leetcode.cn/problems/path-sum/
- 验证二叉搜索树 https://leetcode.cn/problems/validate-binary-search-tree/
- 目标和 https://leetcode.cn/problems/target-sum/
- 省份数量 https://leetcode.cn/problems/number-of-provinces/
BFS:
- 二进制矩阵中的最短路径 https://leetcode.cn/problems/shortest-path-in-binary-matrix/
- 颜色交替的最短路径 https://leetcode.cn/problems/shortest-path-with-alternating-colors/
- 二叉树的层序遍历 https://leetcode.cn/problems/binary-tree-level-order-traversal/
- 对称二叉树 https://leetcode.cn/problems/symmetric-tree/
- 打开转盘锁 https://leetcode.cn/problems/open-the-lock/