Skip to content

Latest commit

 

History

History
182 lines (182 loc) · 15.3 KB

backend.md

File metadata and controls

182 lines (182 loc) · 15.3 KB

后端

若想按部门/难度/题型筛选题目,请进入CodeTop查询

题目 出现次数 链接
146. LRU缓存机制 32 https://leetcode-cn.com/problems/lru-cache
206. 反转链表 30 https://leetcode-cn.com/problems/reverse-linked-list
补充题4. 手撕快速排序 24 https://leetcode-cn.com/problems/sort-an-array
21. 合并两个有序链表 18 https://leetcode-cn.com/problems/merge-two-sorted-lists
470. 用 Rand7() 实现 Rand10() 15 https://leetcode-cn.com/problems/implement-rand10-using-rand7
234. 回文链表 14 https://leetcode-cn.com/problems/palindrome-linked-list
8. 字符串转换整数 (atoi) 13 https://leetcode-cn.com/problems/string-to-integer-atoi
53. 最大子序和 12 https://leetcode-cn.com/problems/maximum-subarray
460. LFU缓存 12 https://leetcode-cn.com/problems/lfu-cache
215. 数组中的第K个最大元素 10 https://leetcode-cn.com/problems/kth-largest-element-in-an-array
153. 寻找旋转排序数组中的最小值 10 https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array
3. 无重复字符的最长子串 10 https://leetcode-cn.com/problems/longest-substring-without-repeating-characters
704. 二分查找 10 https://leetcode-cn.com/problems/binary-search
415. 字符串相加 10 https://leetcode-cn.com/problems/add-strings
补充题6. 手撕堆排序 9 https://leetcode-cn.com/problems/sort-an-array
剑指 Offer 54. 二叉搜索树的第k大节点 9 https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof
160. 相交链表 8 https://leetcode-cn.com/problems/intersection-of-two-linked-lists
141. 环形链表 8 https://leetcode-cn.com/problems/linked-list-cycle
151. 翻转字符串里的单词 8 https://leetcode-cn.com/problems/reverse-words-in-a-string
4. 寻找两个正序数组的中位数 7 https://leetcode-cn.com/problems/median-of-two-sorted-arrays
42. 接雨水 7 https://leetcode-cn.com/problems/trapping-rain-water
102. 二叉树的层序遍历 7 https://leetcode-cn.com/problems/binary-tree-level-order-traversal
144. 二叉树的前序遍历 7 https://leetcode-cn.com/problems/binary-tree-preorder-traversal
300. 最长上升子序列 6 https://leetcode-cn.com/problems/longest-increasing-subsequence
110. 平衡二叉树 6 https://leetcode-cn.com/problems/balanced-binary-tree
2. 两数相加 6 https://leetcode-cn.com/problems/add-two-numbers
70. 爬楼梯 6 https://leetcode-cn.com/problems/climbing-stairs
213. 打家劫舍 II 6 https://leetcode-cn.com/problems/house-robber-ii
5. 最长回文子串 6 https://leetcode-cn.com/problems/longest-palindromic-substring
494. 目标和 6 https://leetcode-cn.com/problems/target-sum
15. 三数之和 6 https://leetcode-cn.com/problems/3sum
1. 两数之和 5 https://leetcode-cn.com/problems/two-sum
239. 滑动窗口最大值 5 https://leetcode-cn.com/problems/sliding-window-maximum
136. 只出现一次的数字 5 https://leetcode-cn.com/problems/single-number
25. K 个一组翻转链表 5 https://leetcode-cn.com/problems/reverse-nodes-in-k-group
232. 用栈实现队列 5 https://leetcode-cn.com/problems/implement-queue-using-stacks
155. 最小栈 5 https://leetcode-cn.com/problems/min-stack
104. 二叉树的最大深度 5 https://leetcode-cn.com/problems/maximum-depth-of-binary-tree
剑指 Offer 22. 链表中倒数第k个节点 5 https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof
322. 零钱兑换 5 https://leetcode-cn.com/problems/coin-change
525. 连续数组 5 https://leetcode-cn.com/problems/contiguous-array
169. 多数元素 4 https://leetcode-cn.com/problems/majority-element
236. 二叉树的最近公共祖先 4 https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree
328. 奇偶链表 4 https://leetcode-cn.com/problems/odd-even-linked-list
9. 回文数 4 https://leetcode-cn.com/problems/palindrome-number
112. 路径总和 4 https://leetcode-cn.com/problems/path-sum
142. 环形链表 II 4 https://leetcode-cn.com/problems/linked-list-cycle-ii
54. 螺旋矩阵 4 https://leetcode-cn.com/problems/spiral-matrix
240. 搜索二维矩阵 II 4 https://leetcode-cn.com/problems/search-a-2d-matrix-ii
20. 有效的括号 4 https://leetcode-cn.com/problems/valid-parentheses
706. 设计哈希映射 4 https://leetcode-cn.com/problems/design-hashmap
678. 有效的括号字符串 4 https://leetcode-cn.com/problems/valid-parenthesis-string
补充题5. 手撕归并排序 4 https://leetcode-cn.com/problems/sort-an-array
31. 下一个排列 4 https://leetcode-cn.com/problems/next-permutation
33. 搜索旋转排序数组 4 https://leetcode-cn.com/problems/search-in-rotated-sorted-array
199. 二叉树的右视图 4 https://leetcode-cn.com/problems/binary-tree-right-side-view
887. 鸡蛋掉落 4 https://leetcode-cn.com/problems/super-egg-drop
46. 全排列 4 https://leetcode-cn.com/problems/permutations
88. 合并两个有序数组 4 https://leetcode-cn.com/problems/merge-sorted-array
23. 合并K个排序链表 3 https://leetcode-cn.com/problems/merge-k-sorted-lists
189. 旋转数组 3 https://leetcode-cn.com/problems/rotate-array
59. 螺旋矩阵 II 3 https://leetcode-cn.com/problems/spiral-matrix-ii
43. 字符串相乘 3 https://leetcode-cn.com/problems/multiply-strings
384. 打乱数组 3 https://leetcode-cn.com/problems/shuffle-an-array
172. 阶乘后的零 3 https://leetcode-cn.com/problems/factorial-trailing-zeroes
227. 基本计算器 II 3 https://leetcode-cn.com/problems/basic-calculator-ii
718. 最长重复子数组 3 https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray
394. 字符串解码 3 https://leetcode-cn.com/problems/decode-string
69. x 的平方根 3 https://leetcode-cn.com/problems/sqrtx
148. 排序链表 3 https://leetcode-cn.com/problems/sort-list
143. 重排链表 3 https://leetcode-cn.com/problems/reorder-list
121. 买卖股票的最佳时机 2 https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock
37. 解数独 2 https://leetcode-cn.com/problems/sudoku-solver
剑指 Offer 42. 连续子数组的最大和 2 https://leetcode-cn.com/problems/lian-xu-zi-shu-zu-de-zui-da-he-lcof
287. 寻找重复数 2 https://leetcode-cn.com/problems/find-the-duplicate-number
129. 求根到叶子节点数字之和 2 https://leetcode-cn.com/problems/sum-root-to-leaf-numbers
78. 子集 2 https://leetcode-cn.com/problems/subsets
剑指 Offer 03. 数组中重复的数字 2 https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof
93. 复原IP地址 2 https://leetcode-cn.com/problems/restore-ip-addresses
82. 删除排序链表中的重复元素 II 2 https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii
138. 复制带随机指针的链表 2 https://leetcode-cn.com/problems/copy-list-with-random-pointer
113. 路径总和 II 2 https://leetcode-cn.com/problems/path-sum-ii
剑指 Offer 65. 不用加减乘除做加法 2 https://leetcode-cn.com/problems/bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof
459. 重复的子字符串 2 https://leetcode-cn.com/problems/repeated-substring-pattern
19. 删除链表的倒数第N个节点 2 https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list
11. 盛最多水的容器 2 https://leetcode-cn.com/problems/container-with-most-water
26. 删除排序数组中的重复项 2 https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array
103. 二叉树的锯齿形层次遍历 2 https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal
补充题21. 字符串相减 2 https://mp.weixin.qq.com/s/kCue4c0gnLSw0HosFl_t7w
907. 子数组的最小值之和 2 https://leetcode-cn.com/problems/sum-of-subarray-minimums
补充题22. IP地址与整数的转换 2 https://mp.weixin.qq.com/s/u-RahFTB3JIqND41HqtotQ
692. 前K个高频单词 2 https://leetcode-cn.com/problems/top-k-frequent-words
200. 岛屿数量 2 https://leetcode-cn.com/problems/number-of-islands
14. 最长公共前缀 2 https://leetcode-cn.com/problems/longest-common-prefix
118. 杨辉三角 2 https://leetcode-cn.com/problems/pascals-triangle
剑指 Offer 57 - II. 和为s的连续正数序列 2 https://leetcode-cn.com/problems/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof
剑指 Offer 40. 最小的k个数 2 https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof
378. 有序矩阵中第K小的元素 2 https://leetcode-cn.com/problems/kth-smallest-element-in-a-sorted-matrix
48. 旋转图像 2 https://leetcode-cn.com/problems/rotate-image
480. 滑动窗口中位数 2 https://leetcode-cn.com/problems/sliding-window-median
1095. 山脉数组中查找目标值 2 https://leetcode-cn.com/problems/find-in-mountain-array
405. 数字转换为十六进制数 2 https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal
92. 反转链表 II 2 https://leetcode-cn.com/problems/reverse-linked-list-ii
876. 链表的中间结点 2 https://leetcode-cn.com/problems/middle-of-the-linked-list
剑指 Offer 24. 反转链表 1 https://leetcode-cn.com/problems/fan-zhuan-lian-biao-lcof
409. 最长回文串 1 https://leetcode-cn.com/problems/longest-palindrome
224. 基本计算器 1 https://leetcode-cn.com/problems/basic-calculator
94. 二叉树的中序遍历 1 https://leetcode-cn.com/problems/binary-tree-inorder-traversal
530. 二叉搜索树的最小绝对差 1 https://leetcode-cn.com/problems/minimum-absolute-difference-in-bst
315. 计算右侧小于当前元素的个数 1 https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self
260. 只出现一次的数字 III 1 https://leetcode-cn.com/problems/single-number-iii
679. 24 点游戏 1 https://leetcode-cn.com/problems/24-game
994. 腐烂的橘子 1 https://leetcode-cn.com/problems/rotting-oranges
588. 设计内存文件系统 1 https://leetcode-cn.com/problems/design-in-memory-file-system
125. 验证回文串 1 https://leetcode-cn.com/problems/valid-palindrome
41. 缺失的第一个正数 1 https://leetcode-cn.com/problems/first-missing-positive
337. 打家劫舍 III 1 https://leetcode-cn.com/problems/house-robber-iii
226. 翻转二叉树 1 https://leetcode-cn.com/problems/invert-binary-tree
剑指 Offer 51. 数组中的逆序对 1 https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof
补充题17. 两个有序数组第k小的数 1
217. 存在重复元素 1 https://leetcode-cn.com/problems/contains-duplicate
242. 有效的字母异位词 1 https://leetcode-cn.com/problems/valid-anagram
63. 不同路径 II 1 https://leetcode-cn.com/problems/unique-paths-ii
74. 搜索二维矩阵 1 https://leetcode-cn.com/problems/search-a-2d-matrix
701. 二叉搜索树中的插入操作 1 https://leetcode-cn.com/problems/insert-into-a-binary-search-tree
1047. 删除字符串中的所有相邻重复项 1 https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string
75. 颜色分类 1 https://leetcode-cn.com/problems/sort-colors
补充题14. 阿拉伯数字转中文数字 1
134. 加油站 1 https://leetcode-cn.com/problems/gas-station
231. 2的幂 1 https://leetcode-cn.com/problems/power-of-two
451. 根据字符出现频率排序 1 https://leetcode-cn.com/problems/sort-characters-by-frequency
24. 两两交换链表中的节点 1 https://leetcode-cn.com/problems/swap-nodes-in-pairs
剑指 Offer 10- I. 斐波那契数列 1 https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof
7. 整数反转 1 https://leetcode-cn.com/problems/reverse-integer
316. 去除重复字母 1 https://leetcode-cn.com/problems/remove-duplicate-letters
117. 填充每个节点的下一个右侧节点指针 II 1 https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node-ii
61. 旋转链表 1 https://leetcode-cn.com/problems/rotate-list
283. 移动零 1 https://leetcode-cn.com/problems/move-zeroes
剑指 Offer 36. 二叉搜索树与双向链表 1 https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof
128. 最长连续序列 1 https://leetcode-cn.com/problems/longest-consecutive-sequence
1044. 最长重复子串 1 https://leetcode-cn.com/problems/longest-duplicate-substring
76. 最小覆盖子串 1 https://leetcode-cn.com/problems/minimum-window-substring
50. Pow(x, n) 1 https://leetcode-cn.com/problems/powx-n
162. 寻找峰值 1 https://leetcode-cn.com/problems/find-peak-element
208. 实现 Trie (前缀树) 1 https://leetcode-cn.com/problems/implement-trie-prefix-tree
179. 最大数 1 https://leetcode-cn.com/problems/largest-number
728. 自除数 1 https://leetcode-cn.com/problems/self-dividing-numbers
391. 完美矩形 1 https://leetcode-cn.com/problems/perfect-rectangle
523. 连续的子数组和 1 https://leetcode-cn.com/problems/continuous-subarray-sum
137. 只出现一次的数字 II 1 https://leetcode-cn.com/problems/single-number-ii
598. 范围求和 II 1 https://leetcode-cn.com/problems/range-addition-ii
258. 各位相加 1 https://leetcode-cn.com/problems/add-digits
443. 压缩字符串 1 https://leetcode-cn.com/problems/string-compression
72. 编辑距离 1 https://leetcode-cn.com/problems/edit-distance
292. Nim 游戏 1 https://leetcode-cn.com/problems/nim-game
297. 二叉树的序列化与反序列化 1 https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree
518. 零钱兑换 II 1 https://leetcode-cn.com/problems/coin-change-2
剑指 Offer 11. 旋转数组的最小数字 1 https://leetcode-cn.com/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof
剑指 Offer 32 - III. 从上到下打印二叉树 III 1 https://leetcode-cn.com/problems/cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof
622. 设计循环队列 1 https://leetcode-cn.com/problems/design-circular-queue
1299. 将每个元素替换为右侧最大元素 1 https://leetcode-cn.com/problems/replace-elements-with-greatest-element-on-right-side
67. 二进制求和 1 https://leetcode-cn.com/problems/add-binary
64. 最小路径和 1 https://leetcode-cn.com/problems/minimum-path-sum
剑指 Offer 52. 两个链表的第一个公共节点 1 https://leetcode-cn.com/problems/liang-ge-lian-biao-de-di-yi-ge-gong-gong-jie-dian-lcof
560. 和为K的子数组 1 https://leetcode-cn.com/problems/subarray-sum-equals-k
28. 实现 strStr() 1 https://leetcode-cn.com/problems/implement-strstr
84. 柱状图中最大的矩形 1 https://leetcode-cn.com/problems/largest-rectangle-in-histogram
295. 数据流的中位数 1 https://leetcode-cn.com/problems/find-median-from-data-stream
225. 用队列实现栈 1 https://leetcode-cn.com/problems/implement-stack-using-queues
剑指 Offer 09. 用两个栈实现队列 1 https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof
442. 数组中重复的数据 1 https://leetcode-cn.com/problems/find-all-duplicates-in-an-array
381. O(1) 时间插入、删除和获取随机元素 - 允许重复 1 https://leetcode-cn.com/problems/insert-delete-getrandom-o1-duplicates-allowed
695. 岛屿的最大面积 1 https://leetcode-cn.com/problems/max-area-of-island
111. 二叉树的最小深度 1 https://leetcode-cn.com/problems/minimum-depth-of-binary-tree
567. 字符串的排列 1 https://leetcode-cn.com/problems/permutation-in-string
107. 二叉树的层次遍历 II 1 https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii
1219. 黄金矿工 1 https://leetcode-cn.com/problems/path-with-maximum-gold
剑指 Offer 16. 数值的整数次方 1 https://leetcode-cn.com/problems/shu-zhi-de-zheng-shu-ci-fang-lcof