客户端

July 19, 2021 · View on GitHub

我开发的CodeTop题库可以按照部门、难度筛选,比markdown更方便查询高频题

题目出现次数链接
206. 反转链表21https://leetcode-cn.com/problems/reverse-linked-list
25. K 个一组翻转链表18https://leetcode-cn.com/problems/reverse-nodes-in-k-group
160. 相交链表18https://leetcode-cn.com/problems/intersection-of-two-linked-lists
215. 数组中的第K个最大元素17https://leetcode-cn.com/problems/kth-largest-element-in-an-array
53. 最大子序和17https://leetcode-cn.com/problems/maximum-subarray
146. LRU缓存机制16https://leetcode-cn.com/problems/lru-cache
15. 三数之和13https://leetcode-cn.com/problems/3sum
1. 两数之和13https://leetcode-cn.com/problems/two-sum
3. 无重复字符的最长子串12https://leetcode-cn.com/problems/longest-substring-without-repeating-characters
121. 买卖股票的最佳时机10https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock
21. 合并两个有序链表10https://leetcode-cn.com/problems/merge-two-sorted-lists
113. 路径总和 II10https://leetcode-cn.com/problems/path-sum-ii
102. 二叉树的层序遍历10https://leetcode-cn.com/problems/binary-tree-level-order-traversal
103. 二叉树的锯齿形层次遍历10https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal
236. 二叉树的最近公共祖先9https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree
958. 二叉树的完全性检验9https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree
105. 从前序与中序遍历序列构造二叉树9https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
41. 缺失的第一个正数8https://leetcode-cn.com/problems/first-missing-positive
199. 二叉树的右视图8https://leetcode-cn.com/problems/binary-tree-right-side-view
54. 螺旋矩阵8https://leetcode-cn.com/problems/spiral-matrix
101. 对称二叉树8https://leetcode-cn.com/problems/symmetric-tree
415. 字符串相加8https://leetcode-cn.com/problems/add-strings
232. 用栈实现队列7https://leetcode-cn.com/problems/implement-queue-using-stacks
112. 路径总和7https://leetcode-cn.com/problems/path-sum
剑指 Offer 09. 用两个栈实现队列7https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof
56. 合并区间7https://leetcode-cn.com/problems/merge-intervals
42. 接雨水7https://leetcode-cn.com/problems/trapping-rain-water
34. 在排序数组中查找元素的第一个和最后一个位置7https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array
19. 删除链表的倒数第N个节点7https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list
151. 翻转字符串里的单词6https://leetcode-cn.com/problems/reverse-words-in-a-string
141. 环形链表6https://leetcode-cn.com/problems/linked-list-cycle
142. 环形链表 II6https://leetcode-cn.com/problems/linked-list-cycle-ii
94. 二叉树的中序遍历6https://leetcode-cn.com/problems/binary-tree-inorder-traversal
144. 二叉树的前序遍历6https://leetcode-cn.com/problems/binary-tree-preorder-traversal
543. 二叉树的直径6https://leetcode-cn.com/problems/diameter-of-binary-tree
104. 二叉树的最大深度6https://leetcode-cn.com/problems/maximum-depth-of-binary-tree
2. 两数相加6https://leetcode-cn.com/problems/add-two-numbers
4. 寻找两个正序数组的中位数6https://leetcode-cn.com/problems/median-of-two-sorted-arrays
82. 删除排序链表中的重复元素 II6https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii
394. 字符串解码5https://leetcode-cn.com/problems/decode-string
200. 岛屿数量5https://leetcode-cn.com/problems/number-of-islands
165. 比较版本号5https://leetcode-cn.com/problems/compare-version-numbers
补充题9. 36进制加法5https://mp.weixin.qq.com/s/XcKQwnwCh5nZsz-DLHJwzQ
344. 反转字符串4https://leetcode-cn.com/problems/reverse-string
88. 合并两个有序数组4https://leetcode-cn.com/problems/merge-sorted-array
136. 只出现一次的数字4https://leetcode-cn.com/problems/single-number
226. 翻转二叉树4https://leetcode-cn.com/problems/invert-binary-tree
剑指 Offer 36. 二叉搜索树与双向链表4https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof
240. 搜索二维矩阵 II4https://leetcode-cn.com/problems/search-a-2d-matrix-ii
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面4https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof
460. LFU缓存4https://leetcode-cn.com/problems/lfu-cache
69. x 的平方根4https://leetcode-cn.com/problems/sqrtx
322. 零钱兑换4https://leetcode-cn.com/problems/coin-change
46. 全排列4https://leetcode-cn.com/problems/permutations
189. 旋转数组4https://leetcode-cn.com/problems/rotate-array
剑指 Offer 27. 二叉树的镜像4https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof
225. 用队列实现栈4https://leetcode-cn.com/problems/implement-stack-using-queues
59. 螺旋矩阵 II4https://leetcode-cn.com/problems/spiral-matrix-ii
剑指 Offer 22. 链表中倒数第k个节点4https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof
补充题4. 手撕快速排序4https://leetcode-cn.com/problems/sort-an-array
剑指 Offer 33. 二叉搜索树的后序遍历序列4https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof
518. 零钱兑换 II3https://leetcode-cn.com/problems/coin-change-2
300. 最长上升子序列3https://leetcode-cn.com/problems/longest-increasing-subsequence
145. 二叉树的后序遍历3https://leetcode-cn.com/problems/binary-tree-postorder-traversal
33. 搜索旋转排序数组3https://leetcode-cn.com/problems/search-in-rotated-sorted-array
162. 寻找峰值3https://leetcode-cn.com/problems/find-peak-element
124. 二叉树中的最大路径和3https://leetcode-cn.com/problems/binary-tree-maximum-path-sum
70. 爬楼梯3https://leetcode-cn.com/problems/climbing-stairs
61. 旋转链表3https://leetcode-cn.com/problems/rotate-list
110. 平衡二叉树3https://leetcode-cn.com/problems/balanced-binary-tree
16. 最接近的三数之和3https://leetcode-cn.com/problems/3sum-closest
20. 有效的括号3https://leetcode-cn.com/problems/valid-parentheses
5. 最长回文子串3https://leetcode-cn.com/problems/longest-palindromic-substring
443. 压缩字符串3https://leetcode-cn.com/problems/string-compression
1143. 最长公共子序列3https://leetcode-cn.com/problems/longest-common-subsequence
75. 颜色分类3https://leetcode-cn.com/problems/sort-colors
24. 两两交换链表中的节点3https://leetcode-cn.com/problems/swap-nodes-in-pairs
315. 计算右侧小于当前元素的个数3https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self
129. 求根到叶子节点数字之和3https://leetcode-cn.com/problems/sum-root-to-leaf-numbers
76. 最小覆盖子串3https://leetcode-cn.com/problems/minimum-window-substring
补充题1. 排序奇升偶降链表3https://mp.weixin.qq.com/s/0WVa2wIAeG0nYnVndZiEXQ
剑指 Offer 38. 字符串的排列3https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof
114. 二叉树展开为链表3https://leetcode-cn.com/problems/flatten-binary-tree-to-linked-list
剑指 Offer 52. 两个链表的第一个公共节点2https://leetcode-cn.com/problems/liang-ge-lian-biao-de-di-yi-ge-gong-gong-jie-dian-lcof
剑指 Offer 45. 把数组排成最小的数2https://leetcode-cn.com/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof
234. 回文链表2https://leetcode-cn.com/problems/palindrome-linked-list
283. 移动零2https://leetcode-cn.com/problems/move-zeroes
190. 颠倒二进制位2https://leetcode-cn.com/problems/reverse-bits
122. 买卖股票的最佳时机 II2https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii
7. 整数反转2https://leetcode-cn.com/problems/reverse-integer
662. 二叉树最大宽度2https://leetcode-cn.com/problems/maximum-width-of-binary-tree
62. 不同路径2https://leetcode-cn.com/problems/unique-paths
191. 位1的个数2https://leetcode-cn.com/problems/number-of-1-bits
48. 旋转图像2https://leetcode-cn.com/problems/rotate-image
739. 每日温度2https://leetcode-cn.com/problems/daily-temperatures
92. 反转链表 II2https://leetcode-cn.com/problems/reverse-linked-list-ii
剑指 Offer 62. 圆圈中最后剩下的数字2https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof
164. 最大间距2https://leetcode-cn.com/problems/maximum-gap
71. 简化路径2https://leetcode-cn.com/problems/simplify-path
98. 验证二叉搜索树2https://leetcode-cn.com/problems/validate-binary-search-tree
55. 跳跃游戏2https://leetcode-cn.com/problems/jump-game
17. 电话号码的字母组合2https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number
72. 编辑距离2https://leetcode-cn.com/problems/edit-distance
347. 前 K 个高频元素2https://leetcode-cn.com/problems/top-k-frequent-elements
977. 有序数组的平方2https://leetcode-cn.com/problems/squares-of-a-sorted-array
155. 最小栈2https://leetcode-cn.com/problems/min-stack
32. 最长有效括号2https://leetcode-cn.com/problems/longest-valid-parentheses
438. 找到字符串中所有字母异位词2https://leetcode-cn.com/problems/find-all-anagrams-in-a-string
93. 复原IP地址2https://leetcode-cn.com/problems/restore-ip-addresses
260. 只出现一次的数字 III2https://leetcode-cn.com/problems/single-number-iii
334. 递增的三元子序列2https://leetcode-cn.com/problems/increasing-triplet-subsequence
8. 字符串转换整数 (atoi)2https://leetcode-cn.com/problems/string-to-integer-atoi
39. 组合总和2https://leetcode-cn.com/problems/combination-sum
224. 基本计算器2https://leetcode-cn.com/problems/basic-calculator
680. 验证回文字符串 Ⅱ2https://leetcode-cn.com/problems/valid-palindrome-ii
470. 用 Rand7() 实现 Rand10()2https://leetcode-cn.com/problems/implement-rand10-using-rand7
530. 二叉搜索树的最小绝对差2https://leetcode-cn.com/problems/minimum-absolute-difference-in-bst
31. 下一个排列2https://leetcode-cn.com/problems/next-permutation
143. 重排链表2https://leetcode-cn.com/problems/reorder-list
128. 最长连续序列1https://leetcode-cn.com/problems/longest-consecutive-sequence
480. 滑动窗口中位数1https://leetcode-cn.com/problems/sliding-window-median
23. 合并K个排序链表1https://leetcode-cn.com/problems/merge-k-sorted-lists
86. 分隔链表1https://leetcode-cn.com/problems/partition-list
140. 单词拆分 II1https://leetcode-cn.com/problems/word-break-ii
剑指 Offer 07. 重建二叉树1https://leetcode-cn.com/problems/zhong-jian-er-cha-shu-lcof
257. 二叉树的所有路径1https://leetcode-cn.com/problems/binary-tree-paths
剑指 Offer 32 - III. 从上到下打印二叉树 III1https://leetcode-cn.com/problems/cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof
209. 长度最小的子数组1https://leetcode-cn.com/problems/minimum-size-subarray-sum
328. 奇偶链表1https://leetcode-cn.com/problems/odd-even-linked-list
557. 反转字符串中的单词 III1https://leetcode-cn.com/problems/reverse-words-in-a-string-iii
445. 两数相加 II1https://leetcode-cn.com/problems/add-two-numbers-ii
1233. 删除子文件夹1https://leetcode-cn.com/problems/remove-sub-folders-from-the-filesystem
701. 二叉搜索树中的插入操作1https://leetcode-cn.com/problems/insert-into-a-binary-search-tree
148. 排序链表1https://leetcode-cn.com/problems/sort-list
138. 复制带随机指针的链表1https://leetcode-cn.com/problems/copy-list-with-random-pointer
503. 下一个更大元素 II1https://leetcode-cn.com/problems/next-greater-element-ii
329. 矩阵中的最长递增路径1https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix
1047. 删除字符串中的所有相邻重复项1https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string
670. 最大交换1https://leetcode-cn.com/problems/maximum-swap
863. 二叉树中所有距离为 K 的结点1https://leetcode-cn.com/problems/all-nodes-distance-k-in-binary-tree
238. 除自身以外数组的乘积1https://leetcode-cn.com/problems/product-of-array-except-self
44. 通配符匹配1https://leetcode-cn.com/problems/wildcard-matching
79. 单词搜索1https://leetcode-cn.com/problems/word-search
767. 重构字符串1https://leetcode-cn.com/problems/reorganize-string
242. 有效的字母异位词1https://leetcode-cn.com/problems/valid-anagram
剑指 Offer 56 - II. 数组中数字出现的次数 II1https://leetcode-cn.com/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof
97. 交错字符串1https://leetcode-cn.com/problems/interleaving-string
77. 组合1https://leetcode-cn.com/problems/combinations
230. 二叉搜索树中第K小的元素1https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst
179. 最大数1https://leetcode-cn.com/problems/largest-number
120. 三角形最小路径和1https://leetcode-cn.com/problems/triangle
26. 删除排序数组中的重复项1https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array
80. 删除排序数组中的重复项 II1https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array-ii
402. 移掉K位数字1https://leetcode-cn.com/problems/remove-k-digits
剑指 Offer 48. 最长不含重复字符的子字符串1https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof
83. 删除排序链表中的重复元素1https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list
剑指 Offer 17. 打印从1到最大的n位数1https://leetcode-cn.com/problems/da-yin-cong-1dao-zui-da-de-nwei-shu-lcof
125. 验证回文串1https://leetcode-cn.com/problems/valid-palindrome
139. 单词拆分1https://leetcode-cn.com/problems/word-break
239. 滑动窗口最大值1https://leetcode-cn.com/problems/sliding-window-maximum
221. 最大正方形1https://leetcode-cn.com/problems/maximal-square
617. 合并二叉树1https://leetcode-cn.com/problems/merge-two-binary-trees
556. 下一个更大元素 III1https://leetcode-cn.com/problems/next-greater-element-iii
11. 盛最多水的容器1https://leetcode-cn.com/problems/container-with-most-water
927. 三等分1https://leetcode-cn.com/problems/three-equal-parts
剑指 Offer 03. 数组中重复的数字1https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof
564. 寻找最近的回文数1https://leetcode-cn.com/problems/find-the-closest-palindrome
498. 对角线遍历1https://leetcode-cn.com/problems/diagonal-traverse
297. 二叉树的序列化与反序列化1https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree
171. Excel表列序号1https://leetcode-cn.com/problems/excel-sheet-column-number
976. 三角形的最大周长1https://leetcode-cn.com/problems/largest-perimeter-triangle
补充题23. 检测循环依赖1https://mp.weixin.qq.com/s/pCRscwKqQdYYN7M1Sia7xA
351. 安卓系统手势解锁1https://leetcode-cn.com/problems/android-unlock-patterns
面试题 02.01. 移除重复节点1https://leetcode-cn.com/problems/remove-duplicate-node-lcci
10. 正则表达式匹配1https://leetcode-cn.com/problems/regular-expression-matching
剑指 Offer 51. 数组中的逆序对1https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof
999. 可以被一步捕获的棋子数1https://leetcode-cn.com/problems/available-captures-for-rook
100. 相同的树1https://leetcode-cn.com/problems/same-tree
718. 最长重复子数组1https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray
1328. 破坏回文串1https://leetcode-cn.com/problems/break-a-palindrome
12. 整数转罗马数字1https://leetcode-cn.com/problems/integer-to-roman
611. 有效三角形的个数1https://leetcode-cn.com/problems/valid-triangle-number
22. 括号生成1https://leetcode-cn.com/problems/generate-parentheses
219. 存在重复元素 II1https://leetcode-cn.com/problems/contains-duplicate-ii