重新分类 Leetcode 高频题
- 题目按照 Leetcode 题目频率降序排列
- 增加难度分类,适合从简单开始学习
- 增加细分类别,例如单调栈,前缀树等
Leetcode-cn
- 92. 反转链表 II
- 143. 重排链表
- 82. 删除排序链表中的重复元素 II
- 19. 删除链表的倒数第 N 个结点
- 148. 排序链表
- 86. 分隔链表
- 61. 旋转链表
- 142. 环形链表 II
- 147. 对链表进行插入排序
- 138. 复制带随机指针的链表
- 24. 两两交换链表中的节点
- 328. 奇偶链表
- 707. 设计链表
- 109. 有序链表转换二叉搜索树
- 430. 扁平化多级双向链表
- 725. 分隔链表
- 105. 从前序与中序遍历序列构造二叉树
- 102. 二叉树的层序遍历
- 103. 二叉树的锯齿形层序遍历
- 107. 二叉树的层序遍历 II
- 106. 从中序与后序遍历序列构造二叉树
- 144. 二叉树的前序遍历
- 104. 二叉树的最大深度
- 101. 对称二叉树
- 226. 翻转二叉树
- 543. 二叉树的直径
- 257. 二叉树的所有路径
- 110. 平衡二叉树
- 617. 合并二叉树
- 100. 相同的树
- 112. 路径总和
- 111. 二叉树的最小深度
- 236. 二叉树的最近公共祖先
- 222. 完全二叉树的节点个数
- 113. 路径总和 II
- 437. 路径总和 III
- 129. 求根节点到叶节点数字之和
- 662. 二叉树最大宽度
- 114. 二叉树展开为链表
- 199. 二叉树的右视图
- 20. 有效的括号
- 1047. 删除字符串中的所有相邻重复项
- 232. 用栈实现队列
- 155. 最小栈
- 225. 用队列实现栈
- 1021. 删除最外层的括号
- 682. 棒球比赛
- 844. 比较含退格的字符串
- 1190. 反转每对括号间的子串
- 394. 字符串解码
- 456. 132 模式
- 227. 基本计算器 II
- 150. 逆波兰表达式求值
- 503. 下一个更大元素 II
- 71. 简化路径
- 856. 括号的分数
- 907. 子数组的最小值之和
- 385. 迷你语法分析器
- 1249. 移除无效的括号
- 636. 函数的独占时间
- 341. 扁平化嵌套列表迭代器
- 215. 数组中的第 K 个最大元素
- 347. 前 K 个高频元素
- 692. 前 K 个高频单词
- 378. 有序矩阵中第 K 小的元素
- 451. 根据字符出现频率排序
- 743. 网络延迟时间
- 787. K 站中转内最便宜的航班
- 973. 最接近原点的 K 个点
Leetcode
- 206. Invert linked list
- 141. Ring linked list
- 83. Delete duplicate elements in the sorted list
- 234. Palindrome list
- 203. Remove linked list elements
- 237. Delete nodes in the linked list
- 876. The middle node of the linked list
- [92. Invert linked List II] (https://leetcode.com/problems/reverse-linked-list-ii/)
- 143. Rearrange linked lists
- [82. Delete duplicate elements in the sorted list II] (https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)
- 19. Delete the penultimate N-th node of the linked list
- 148. Sort linked list
- 86. Separate linked list
- 61. Rotate the linked list
- [142. Ring Linked List II] (https://leetcode.com/problems/linked-list-cycle-ii/)
- 147. Insert and sort the linked list
- 138. Copy a linked list with random pointers
- 24. Two pairs of nodes in the swap list
- 328. Parity linked list
- 707. Design linked list
- 109. Ordered linked list conversion Binary search tree
- 430. Flattened multi-level doubly linked list
- 725. Separate linked list
- 2. Two numbers add up
- [445. Add two numbers II] (https://leetcode.com/problems/add-two-numbers-ii/)
- 1669. Merge two linked lists
- 98. Verify binary search tree
- 96. Different binary search trees
- [95. Different binary search trees II] (https://leetcode.com/problems/unique-binary-search-trees-ii/)
- 173. Binary Search Tree Iterator
- 230. The K-th small element in the binary search tree
- 105. Construct binary trees from pre-and middle-order traversal sequences
- 102. Hierarchical traversal of binary trees
- 103. Zigzag hierarchical traversal of binary trees
- [107. Hierarchical Traversal of binary trees II] (https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)
- 106. Construct binary trees from sequential and post-sequential traversal sequences
- 144. Preorder traversal of binary trees
- 104. Maximum depth of a binary tree
- 101. Symmetric binary tree
- 226. Flip binary tree
- 543. The diameter of the binary tree
- 257. All paths to a binary tree
- 110. Balanced binary tree
- 617. Merge binary trees
- 100. The same tree
- 112. Path sum
- 111. Minimum depth of a binary tree
- 236. The nearest common ancestor of binary trees
- 222. The number of nodes of a complete binary tree
- [113. Path Sum II] (https://leetcode.com/problems/path-sum-ii/)
- [437. Path sum III] (https://leetcode.com/problems/path-sum-iii/)
- 129. Find the sum of the root node to leaf node numbers
- 662. Maximum width of binary tree
- 114. Binary tree expands to linked list
- 199. Right view of a binary tree
- 20. Valid parentheses
- 1047. Remove all adjacent duplicates in the string
- 232. Implement queues with stacks
- 155. Minimum stack
- 225. Implement stacks with queues
- 1021. Remove the outermost parentheses
- 682. Baseball Games
- 844. Compare strings with backspace
- 1190. Invert the substring between each pair of parentheses
- 394. String decoding
- 456. 132 mode
- [227. Basic Calculator II] (https://leetcode.com/problems/basic-calculator-ii/)
- 150. Inverse Polish expression evaluation
- 503. Next Larger Element II
- 71. Simplified path
- [856. Scores in parentheses are listed in this order from left to right. https://leetcode.com/problems/score-of-parentheses/)
- 907. The sum of the minimum values of the subarray
- 385. Mini Parser
- 1249. Remove invalid parentheses
- 636. Exclusive time of the function
- 341. Flattening nested list iterators
- 739. Daily temperature
- [402. Remove the K-digit] (https://leetcode.com/problems/remove-k-digits/)
- 316. Remove duplicate letters
- 1124. The longest period of good performance
- [42. It is found in the Democratic Republic of the Congo. https://leetcode.com/problems/trapping-rain-water/)
- 84. The largest rectangle in the histogram
- 85. Maximum rectangle
- 321. Maximum number of splices
- 215. The K-th largest element in the array
- 347. Former K high frequency elements
- 692. The first K high frequency words
- 378. K-th small element in an ordered matrix
- 451. Sort by frequency of character occurrence
- 743. Network delay time
- [787. The cheapest flight within Stop K] (https://leetcode.com/problems/cheapest-flights-within-k-stops/)
- 973. The K points closest to the origin
- [239. Sliding window maximum] (https://leetcode.com/problems/sliding-window-maximum/)
- 295. The median of the data stream
- 218. The Skyline problem
- 264. Ugly Number II
- 767. Refactor the string
- 373. Find and minimum K pairs of numbers
- 313. Super ugly number