友情支持

如果您觉得这个笔记对您有所帮助,看在D瓜哥码这么多字的辛苦上,请友情支持一下,D瓜哥感激不尽,😜

支付宝

微信

有些打赏的朋友希望可以加个好友,欢迎关注D 瓜哥的微信公众号,这样就可以通过公众号的回复直接给我发信息。

wx jikerizhi

公众号的微信号是: jikerizhi因为众所周知的原因,有时图片加载不出来。 如果图片加载不出来可以直接通过搜索微信号来查找我的公众号。

字节跳动

字节跳动常见算法题。

最近 30 天

  1. 1. 两数之和

  2. 2. Add Two Numbers

  3. 3. 无重复字符的最长子串

  4. 5. 最长回文子串

  5. 11. 盛最多水的容器

  6. 15. 三数之和

  7. 23. 合并 K 个升序链表

  8. 25. K 个一组翻转链表

  9. 27. 移除元素

  10. 42. 接雨水

  11. 72. 编辑距离

  12. 88. 合并两个有序数组

  13. 146. LRU 缓存

  14. 20. Valid Parentheses

  15. 662. 二叉树最大宽度

  16. 31. 下一个排列

  17. 189. 轮转数组

  18. 203. 移除链表元素

  19. 718. 最长重复子数组

  20. 209. 长度最小的子数组

  21. 131. 分割回文串

  22. 721. 账户合并

  23. 215. 数组中的第K个最大元素

  24. 92. 反转链表 II

  25. 26. Remove Duplicates from Sorted Array

  26. 59. Spiral Matrix II

  27. 707. 设计链表

  28. 128. 最长连续序列

  29. 1081. 不同字符的最小子序列

  30. 200. 岛屿数量

  31. 1997. 访问完所有房间的第一天

  32. 206. 反转链表

  33. 21. 合并两个有序链表

  34. 56. 合并区间

  35. 121. 买卖股票的最佳时机

  36. 316. 去除重复字母

  37. 4. Median of Two Sorted Arrays

  38. 8. String to Integer (atoi)

  39. 13. Roman to Integer

  40. 530. 二叉搜索树的最小绝对差

  41. 19. 删除链表的倒数第 N 个结点

  42. 2850. 将石头分散到网格图的最少移动次数

  43. 24. Swap Nodes in Pairs

  44. 538. Convert BST to Greater Tree

  45. 30. 串联所有单词的子串

  46. 32. 最长有效括号

  47. 33. 搜索旋转排序数组

  48. 37. 解数独

  49. 39. 组合总和

  50. 40. 组合总和 II

  51. 48. 旋转图像

  52. 49. Group Anagrams

  53. 560. Subarray Sum Equals K

  54. 54. 螺旋矩阵

  55. [0569-median-employee-salary]

  56. 63. 不同路径 II

  57. 69. Sqrt(x)

  58. 70. Climbing Stairs

  59. [0585-investments-in-2016]

  60. 74. 搜索二维矩阵

  61. 76. 最小覆盖子串

  62. 84. 柱状图中最大的矩形

  63. 1047. 删除字符串中的所有相邻重复项

  64. 106. Construct Binary Tree from Inorder and Postorder Traversal

  65. 1049. 最后一块石头的重量 II

  66. 108. 将有序数组转换为二叉搜索树

  67. [0115-distinct-subsequences]

  68. [1530-number-of-good-leaf-nodes-pairs]

  69. 122. Best Time to Buy and Sell Stock II

  70. 123. Best Time to Buy and Sell Stock III

  71. 125. Valid Palindrome

  72. 136. Single Number

  73. [0649-dota2-senate]

  74. 141. 环形链表

  75. 144. Binary Tree Preorder Traversal

  76. [2959-number-of-possible-sets-of-closing-branches]

  77. 153. Find Minimum in Rotated Sorted Array

  78. 155. Min Stack

  79. [0670-maximum-swap]

  80. [1115-print-foobar-alternately]

  81. 167. Two Sum II - Input array is sorted

  82. [0180-consecutive-numbers]

  83. [0697-degree-of-an-array]

  84. [1112-highest-grade-for-each-student]

  85. 199. Binary Tree Right Side View

  86. [0211-design-add-and-search-words-data-structure]

  87. [0216-combination-sum-iii]

  88. 221. 最大正方形

  89. [0224-basic-calculator]

  90. 227. Basic Calculator II

  91. [2684-maximum-number-of-moves-in-a-grid]

  92. 239. Sliding Window Maximum

  93. [1171-remove-zero-sum-consecutive-nodes-from-linked-list]

  94. [3086-minimum-moves-to-pick-k-ones]

  95. [0260-single-number-iii]

  96. [2703-return-length-of-arguments-passed]

  97. [1174-immediate-food-delivery-ii]

  98. [0787-cheapest-flights-within-k-stops]

  99. [0794-valid-tic-tac-toe-state]

  100. [3099-harshad-number]

  101. 300. Longest Increasing Subsequence

  102. [3115-maximum-prime-difference]

  103. [0705-design-hashset]

  104. [2800-shortest-string-that-contains-three-strings]

  105. 347. 前 K 个高频元素

  106. [2320-count-number-of-ways-to-place-houses]

  107. 350. Intersection of Two Arrays II

  108. [1769-minimum-number-of-operations-to-move-all-balls-to-each-box]

  109. 392. Is Subsequence

  110. 409. Longest Palindrome

  111. [1839-longest-substring-of-all-vowels-in-order]

  112. [0918-maximum-sum-circular-subarray]

  113. [1349-maximum-students-taking-exam]

  114. [0452-minimum-number-of-arrows-to-burst-balloons]

  115. [1378-replace-employee-id-with-the-unique-identifier]

  116. 509. Fibonacci Number

最近 3 个月

  1. 1. 两数之和

  2. 2. Add Two Numbers

  3. 3. 无重复字符的最长子串

  4. 4. Median of Two Sorted Arrays

  5. 5. 最长回文子串

  6. 7. Reverse Integer

  7. 11. 盛最多水的容器

  8. [0994-rotting-oranges]

  9. 14. Longest Common Prefix

  10. 15. 三数之和

  11. 16. 3Sum Closest

  12. 17. Letter Combinations of a Phone Number

  13. 19. 删除链表的倒数第 N 个结点

  14. 20. Valid Parentheses

  15. 21. 合并两个有序链表

  16. 22. Generate Parentheses

  17. 23. 合并 K 个升序链表

  18. 24. Swap Nodes in Pairs

  19. 25. K 个一组翻转链表

  20. 26. Remove Duplicates from Sorted Array

  21. 27. 移除元素

  22. 28. 找出字符串中第一个匹配项的下标

  23. 31. 下一个排列

  24. 33. 搜索旋转排序数组

  25. 34. 在排序数组中查找元素的第一个和最后一个位置

  26. [0036-valid-sudoku]

  27. 37. 解数独

  28. 40. 组合总和 II

  29. 41. 缺失的第一个正数

  30. 42. 接雨水

  31. 45. Jump Game II

  32. 48. 旋转图像

  33. 49. Group Anagrams

  34. 53. 最大子数组和

  35. 54. 螺旋矩阵

  36. 55. Jump Game

  37. 56. 合并区间

  38. 64. 最小路径和

  39. 69. Sqrt(x)

  40. 70. Climbing Stairs

  41. 72. 编辑距离

  42. 74. 搜索二维矩阵

  43. 76. 最小覆盖子串

  44. 80. Remove Duplicates from Sorted Array II

  45. 82. Remove Duplicates from Sorted List II

  46. 83. Remove Duplicates from Sorted List

  47. 84. 柱状图中最大的矩形

  48. 88. 合并两个有序数组

  49. 91. Decode Ways

  50. 94. Binary Tree Inorder Traversal

  51. 96. 不同的二叉搜索树

  52. [0097-interleaving-string]

  53. 102. 二叉树的层序遍历

  54. 105. Construct Binary Tree from Preorder and Inorder Traversal

  55. 121. 买卖股票的最佳时机

  56. 125. Valid Palindrome

  57. 128. 最长连续序列

  58. 131. 分割回文串

  59. 134. Gas Station

  60. 135. Candy

  61. 136. Single Number

  62. 138. Copy List with Random Pointer

  63. 141. 环形链表

  64. 143. 重排链表

  65. 146. LRU 缓存

  66. 148. 排序链表

  67. 155. Min Stack

  68. 160. Intersection of Two Linked Lists

  69. 175. Combine Two Tables

  70. [0178-rank-scores]

  71. 179. Largest Number

  72. [0180-consecutive-numbers]

  73. [0181-employees-earning-more-than-their-managers]

  74. [0185-department-top-three-salaries]

  75. 189. 轮转数组

  76. 191. Number of 1 Bits

  77. 198. 打家劫舍

  78. 199. Binary Tree Right Side View

  79. 206. 反转链表

  80. 215. 数组中的第K个最大元素

  81. 221. 最大正方形

  82. 226. Invert Binary Tree

  83. 227. Basic Calculator II

  84. 1143. 最长公共子序列

  85. 234. Palindrome Linked List

  86. 236. 二叉树的最近公共祖先

  87. 239. Sliding Window Maximum

  88. 240. Search a 2D Matrix II

  89. [0260-single-number-iii]

  90. [0274-h-index]

  91. 283. Move Zeroes

  92. 300. Longest Increasing Subsequence

  93. 343. 整数拆分

  94. 347. 前 K 个高频元素

  95. [0349-intersection-of-two-arrays]

  96. [1251-average-selling-price]

  97. [0377-combination-sum-iv]

  98. 380. Insert Delete GetRandom O(1)

  99. 387. First Unique Character in a String

  100. 392. Is Subsequence

  101. 416. 分割等和子集

  102. 438. Find All Anagrams in a String

  103. [0514-freedom-trail]

  104. 560. Subarray Sum Equals K

  105. [0584-find-customer-referee]

  106. [1502-can-make-arithmetic-progression-from-sequence]

  107. 617. Merge Two Binary Trees

  108. [1539-kth-missing-positive-number]

  109. [0670-maximum-swap]

  110. [1581-customer-who-visited-but-did-not-make-any-transactions]

  111. 718. 最长重复子数组

  112. [0763-partition-labels]

  113. 704. Binary Search

  114. 707. 设计链表

  115. [0977-squares-of-a-sorted-array]

  116. [0522-longest-uncommon-subsequence-ii]

  117. 151. Reverse Words in a String

  118. [0918-maximum-sum-circular-subarray]

  119. 8. String to Integer (atoi)

  120. [2813-maximum-elegance-of-a-k-length-subsequence]

  121. 124. 二叉树中的最大路径和

  122. 394. Decode String

  123. 662. 二叉树最大宽度

  124. 59. Spiral Matrix II

  125. 203. 移除链表元素

  126. 209. 长度最小的子数组

  127. 721. 账户合并

  128. 92. 反转链表 II

  129. 1081. 不同字符的最小子序列

  130. 1997. 访问完所有房间的第一天

  131. 122. Best Time to Buy and Sell Stock II

  132. 316. 去除重复字母

  133. [0986-interval-list-intersections]

  134. 6. ZigZag Conversion

  135. [2476-closest-nodes-queries-in-a-binary-search-tree]

  136. [0521-longest-uncommon-subsequence-i]

  137. 10. Regular Expression Matching

  138. 523. Continuous Subarray Sum

  139. 12. Integer to Roman

  140. 13. Roman to Integer

  141. [1442-count-triplets-that-can-form-two-arrays-of-equal-xor]

  142. 18. 4Sum

  143. 530. 二叉搜索树的最小绝对差

  144. 2850. 将石头分散到网格图的最少移动次数

  145. [1004-max-consecutive-ones-iii]

  146. [1450-number-of-students-doing-homework-at-a-given-time]

  147. [0537-complex-number-multiplication]

  148. 538. Convert BST to Greater Tree

  149. [0541-reverse-string-ii]

  150. 30. 串联所有单词的子串

  151. [0542-01-matrix]

  152. 32. 最长有效括号

  153. [1953-maximum-number-of-weeks-for-which-you-can-work]

  154. 39. 组合总和

  155. [0552-student-attendance-record-ii]

  156. 43. Multiply Strings

  157. [0044-wildcard-matching]

  158. 46. 全排列

  159. 47. Permutations II

  160. [1017-convert-to-base-2]

  161. 50. Pow(x, n)

  162. 51. N-Queens

  163. 57. Insert Interval

  164. [0569-median-employee-salary]

  165. 61. Rotate List

  166. 62. 不同路径

  167. 63. 不同路径 II

  168. [1965-employees-with-missing-information]

  169. [0577-employee-bonus]

  170. [2007-find-original-array-from-doubled-array]

  171. [0585-investments-in-2016]

  172. 75. Sort Colors

  173. 78. Subsets

  174. 79. Word Search

  175. [0595-big-countries]

  176. [0085-maximal-rectangle]

  177. 89. Gray Code

  178. 93. 复原 IP 地址

  179. [0605-can-place-flowers]

  180. [0608-tree-node]

  181. [2588-count-the-number-of-beautiful-subarrays]

  182. [2589-minimum-time-to-complete-all-tasks]

  183. 99. Recover Binary Search Tree

  184. 100. Same Tree

  185. 103. Binary Tree Zigzag Level Order Traversal

  186. 1047. 删除字符串中的所有相邻重复项

  187. [2594-minimum-time-to-repair-cars]

  188. 106. Construct Binary Tree from Inorder and Postorder Traversal

  189. 1049. 最后一块石头的重量 II

  190. 108. 将有序数组转换为二叉搜索树

  191. 110. Balanced Binary Tree

  192. 114. Flatten Binary Tree to Linked List

  193. [0115-distinct-subsequences]

  194. [1052-grumpy-bookstore-owner]

  195. [1530-number-of-good-leaf-nodes-pairs]

  196. [2552-count-increasing-quadruplets]

  197. 123. Best Time to Buy and Sell Stock III

  198. [2663-lexicographically-smallest-beautiful-string]

  199. [2928-distribute-candies-among-children-i]

  200. [1542-find-longest-awesome-substring]

  201. [1079-letter-tile-possibilities]

  202. [0649-dota2-senate]

  203. [0650-2-keys-keyboard]

  204. [1075-project-employees-i]

  205. 142. 环形链表 II

  206. 654. Maximum Binary Tree

  207. 144. Binary Tree Preorder Traversal

  208. 145. Binary Tree Postorder Traversal

  209. [2959-number-of-possible-sets-of-closing-branches]

  210. 152. Maximum Product Subarray

  211. 153. Find Minimum in Rotated Sorted Array

  212. [2965-find-missing-and-repeated-values]

  213. 162. Find Peak Element

  214. [1115-print-foobar-alternately]

  215. [0165-compare-version-numbers]

  216. 167. Two Sum II - Input array is sorted

  217. [1103-distribute-candies-to-people]

  218. [2105-watering-plants-ii]

  219. [0697-degree-of-an-array]

  220. 188. Best Time to Buy and Sell Stock IV

  221. [1112-highest-grade-for-each-student]

  222. [1116-print-zero-even-odd]

  223. 713. Subarray Product Less Than K

  224. 202. 快乐数

  225. 714. Best Time to Buy and Sell Stock with Transaction Fee

  226. [2626-array-reduce-transformation]

  227. 207. 课程表

  228. 208. 实现 Trie (前缀树)

  229. [0211-design-add-and-search-words-data-structure]

  230. 724. Find Pivot Index

  231. [2648-generate-fibonacci-sequence]

  232. [0216-combination-sum-iii]

  233. [1141-user-activity-for-the-past-30-days-i]

  234. [0224-basic-calculator]

  235. [0228-summary-ranges]

  236. [2684-maximum-number-of-moves-in-a-grid]

  237. 237. Delete Node in a Linked List

  238. 238. Product of Array Except Self

  239. 242. Valid Anagram

  240. [1171-remove-zero-sum-consecutive-nodes-from-linked-list]

  241. [3040-maximum-number-of-operations-with-the-same-score-ii]

  242. [2181-merge-nodes-in-between-zeros]

  243. [2769-find-the-maximum-achievable-number]

  244. [3086-minimum-moves-to-pick-k-ones]

  245. [2703-return-length-of-arguments-passed]

  246. [0264-ugly-number-ii]

  247. [1661-average-time-of-process-per-machine]

  248. [1174-immediate-food-delivery-ii]

  249. [2831-find-the-longest-equal-subarray]

  250. [2749-minimum-operations-to-make-the-integer-zero]

  251. [1695-maximum-erasure-value]

  252. 279. Perfect Squares

  253. [1405-longest-happy-string]

  254. [1723-find-minimum-time-to-finish-all-jobs]

  255. [0290-word-pattern]

  256. [0787-cheapest-flights-within-k-stops]

  257. [1683-invalid-tweets]

  258. [1208-get-equal-substrings-within-budget]

  259. [3099-harshad-number]

  260. [3115-maximum-prime-difference]

  261. [2725-interval-cancellation]

  262. [1204-last-person-to-fit-in-the-bus]

  263. [0705-design-hashset]

  264. [1219-path-with-maximum-gold]

  265. [2762-continuous-subarrays]

  266. [2276-count-integers-in-intervals]

  267. [0310-minimum-height-trees]

  268. [2771-longest-non-decreasing-subarray-from-two-arrays]

  269. [0312-burst-balloons]

  270. [3110-score-of-a-string]

  271. [2244-minimum-rounds-to-complete-all-tasks]

  272. [2800-shortest-string-that-contains-three-strings]

  273. 322. 零钱兑换

  274. [1738-find-kth-largest-xor-coordinate-value]

  275. [2293-min-max-game]

  276. [0828-count-unique-characters-of-all-substrings-of-a-given-string]

  277. [0829-consecutive-numbers-sum]

  278. [0345-reverse-vowels-of-a-string]

  279. [2320-count-number-of-ways-to-place-houses]

  280. 350. Intersection of Two Arrays II

  281. [2812-find-the-safest-path-in-a-grid]

  282. [1255-maximum-score-words-formed-by-letters]

  283. [3149-find-the-minimum-cost-array-permutation]

  284. [0842-split-array-into-fibonacci-sequence]

  285. [3160-find-the-number-of-distinct-colors-among-the-balls]

  286. [1769-minimum-number-of-operations-to-move-all-balls-to-each-box]

  287. [3171-find-subarray-with-bitwise-or-closest-to-k]

  288. [3180-maximum-total-reward-using-operations-i]

  289. [1268-search-suggestions-system]

  290. [0862-shortest-subarray-with-sum-at-least-k]

  291. [0863-all-nodes-distance-k-in-binary-tree]

  292. [0383-ransom-note]

  293. [3197-find-the-minimum-area-to-cover-all-ones-ii]

  294. 875. Koko Eating Bananas

  295. [0396-rotate-function]

  296. 402. Remove K Digits

  297. [1789-primary-department-for-each-employee]

  298. 409. Longest Palindrome

  299. [0414-third-maximum-number]

  300. [0417-pacific-atlantic-water-flow]

  301. [0421-maximum-xor-of-two-numbers-in-an-array]

  302. [2391-minimum-amount-of-time-to-collect-garbage]

  303. [0901-online-stock-span]

  304. [0907-sum-of-subarray-minimums]

  305. [1839-longest-substring-of-all-vowels-in-order]

  306. 912. Sort an Array

  307. [1849-splitting-a-string-into-descending-consecutive-values]

  308. [1349-maximum-students-taking-exam]

  309. 448. Find All Numbers Disappeared in an Array

  310. [0451-sort-characters-by-frequency]

  311. [0452-minimum-number-of-arrows-to-burst-balloons]

  312. 453. Minimum Moves to Equal Array Elements

  313. 454. 4Sum II

  314. [0455-assign-cookies]

  315. [0930-binary-subarrays-with-sum]

  316. 946. Validate Stack Sequences

  317. 474. 一和零

  318. 480. Sliding Window Median

  319. [2439-minimize-maximum-of-array]

  320. [1378-replace-employee-id-with-the-unique-identifier]

  321. [0486-predict-the-winner]

  322. [0965-univalued-binary-tree]

  323. 509. Fibonacci Number

  324. 503. Next Greater Element II

最近 6 个月

  1. 1. 两数之和

  2. 3. 无重复字符的最长子串

  3. [0988-smallest-string-starting-from-leaf]

  4. 7. Reverse Integer

  5. 8. String to Integer (atoi)

  6. 9. Palindrome Number

  7. 11. 盛最多水的容器

  8. 12. Integer to Roman

  9. 2. Add Two Numbers

  10. 15. 三数之和

  11. 16. 3Sum Closest

  12. 17. Letter Combinations of a Phone Number

  13. 18. 4Sum

  14. 19. 删除链表的倒数第 N 个结点

  15. 20. Valid Parentheses

  16. 21. 合并两个有序链表

  17. 22. Generate Parentheses

  18. 23. 合并 K 个升序链表

  19. 24. Swap Nodes in Pairs

  20. 4. Median of Two Sorted Arrays

  21. 26. Remove Duplicates from Sorted Array

  22. 27. 移除元素

  23. 28. 找出字符串中第一个匹配项的下标

  24. 25. K 个一组翻转链表

  25. 5. 最长回文子串

  26. 31. 下一个排列

  27. 33. 搜索旋转排序数组

  28. 34. 在排序数组中查找元素的第一个和最后一个位置

  29. 35. Search Insert Position

  30. 37. 解数独

  31. 40. 组合总和 II

  32. 41. 缺失的第一个正数

  33. 43. Multiply Strings

  34. 39. 组合总和

  35. 45. Jump Game II

  36. 42. 接雨水

  37. 46. 全排列

  38. 48. 旋转图像

  39. 49. Group Anagrams

  40. 50. Pow(x, n)

  41. 51. N-Queens

  42. 53. 最大子数组和

  43. 54. 螺旋矩阵

  44. 55. Jump Game

  45. 56. 合并区间

  46. 10. Regular Expression Matching

  47. 59. Spiral Matrix II

  48. 62. 不同路径

  49. 63. 不同路径 II

  50. 70. Climbing Stairs

  51. 14. Longest Common Prefix

  52. 72. 编辑距离

  53. 73. Set Matrix Zeroes

  54. 74. 搜索二维矩阵

  55. 76. 最小覆盖子串

  56. 78. Subsets

  57. 80. Remove Duplicates from Sorted Array II

  58. 82. Remove Duplicates from Sorted List II

  59. [0085-maximal-rectangle]

  60. 86. Partition List

  61. 88. 合并两个有序数组

  62. 91. Decode Ways

  63. 92. 反转链表 II

  64. 93. 复原 IP 地址

  65. 96. 不同的二叉搜索树

  66. 100. Same Tree

  67. 101. Symmetric Tree

  68. 102. 二叉树的层序遍历

  69. 103. Binary Tree Zigzag Level Order Traversal

  70. 104. Maximum Depth of Binary Tree

  71. 105. Construct Binary Tree from Preorder and Inorder Traversal

  72. 106. Construct Binary Tree from Inorder and Postorder Traversal

  73. 108. 将有序数组转换为二叉搜索树

  74. 110. Balanced Binary Tree

  75. [2924-find-champion-ii]

  76. 121. 买卖股票的最佳时机

  77. 122. Best Time to Buy and Sell Stock II

  78. 125. Valid Palindrome

  79. 128. 最长连续序列

  80. [1068-product-sales-analysis-i]

  81. 131. 分割回文串

  82. 134. Gas Station

  83. 135. Candy

  84. 138. Copy List with Random Pointer

  85. 139. 单词拆分

  86. 141. 环形链表

  87. 142. 环形链表 II

  88. 146. LRU 缓存

  89. 148. 排序链表

  90. 151. Reverse Words in a String

  91. 153. Find Minimum in Rotated Sorted Array

  92. 152. Maximum Product Subarray

  93. [0550-game-play-analysis-iv]

  94. [0165-compare-version-numbers]

  95. 169. Majority Element

  96. 176. Second Highest Salary

  97. 179. Largest Number

  98. [0181-employees-earning-more-than-their-managers]

  99. 189. 轮转数组

  100. 198. 打家劫舍

  101. 199. Binary Tree Right Side View

  102. 200. 岛屿数量

  103. 203. 移除链表元素

  104. 206. 反转链表

  105. 209. 长度最小的子数组

  106. 215. 数组中的第K个最大元素

  107. [0216-combination-sum-iii]

  108. 221. 最大正方形

  109. 1143. 最长公共子序列

  110. 226. Invert Binary Tree

  111. [0228-summary-ranges]

  112. 238. Product of Array Except Self

  113. 239. Sliding Window Maximum

  114. 240. Search a 2D Matrix II

  115. [0253-meeting-rooms-ii]

  116. [0264-ugly-number-ii]

  117. [0274-h-index]

  118. 279. Perfect Squares

  119. 283. Move Zeroes

  120. 287. Find the Duplicate Number

  121. 289. Game of Life

  122. 300. Longest Increasing Subsequence

  123. [0310-minimum-height-trees]

  124. 322. 零钱兑换

  125. [2235-add-two-integers]

  126. 343. 整数拆分

  127. 347. 前 K 个高频元素

  128. [0349-intersection-of-two-arrays]

  129. [0365-water-and-jug-problem]

  130. [1251-average-selling-price]

  131. [0377-combination-sum-iv]

  132. 380. Insert Delete GetRandom O(1)

  133. [0386-lexicographical-numbers]

  134. 387. First Unique Character in a String

  135. 392. Is Subsequence

  136. 394. Decode String

  137. 402. Remove K Digits

  138. 416. 分割等和子集

  139. [0417-pacific-atlantic-water-flow]

  140. 438. Find All Anagrams in a String

  141. [0452-minimum-number-of-arrows-to-burst-balloons]

  142. 454. 4Sum II

  143. 474. 一和零

  144. [1378-replace-employee-id-with-the-unique-identifier]

  145. 494. Target Sum

  146. 516. 最长回文子序列

  147. 560. Subarray Sum Equals K

  148. [0595-big-countries]

  149. [0611-valid-triangle-number]

  150. [0649-dota2-senate]

  151. 662. 二叉树最大宽度

  152. 669. Trim a Binary Search Tree

  153. [0680-valid-palindrome-ii]

  154. 695. Max Area of Island

  155. 713. Subarray Product Less Than K

  156. 718. 最长重复子数组

  157. [0763-partition-labels]

  158. [1661-average-time-of-process-per-machine]

  159. [2831-find-the-longest-equal-subarray]

  160. 704. Binary Search

  161. [2789-largest-element-in-an-array-after-merge-operations]

  162. 707. 设计链表

  163. [1766-tree-of-coprimes]

  164. [1768-merge-strings-alternately]

  165. [1757-recyclable-and-low-fat-products]

  166. [0871-minimum-number-of-refueling-stops]

  167. [0902-numbers-at-most-n-given-digit-set]

  168. 912. Sort an Array

  169. 946. Validate Stack Sequences

  170. [1883-minimum-skips-to-arrive-at-meeting-on-time]

  171. [0977-squares-of-a-sorted-array]

  172. 654. Maximum Binary Tree

  173. 143. 重排链表

  174. [0537-complex-number-multiplication]

  175. 175. Combine Two Tables

  176. [0185-department-top-three-salaries]

  177. [2007-find-original-array-from-doubled-array]

  178. [0455-assign-cookies]

  179. 202. 快乐数

  180. 75. Sort Colors

  181. 84. 柱状图中最大的矩形

  182. [0097-interleaving-string]

  183. 236. 二叉树的最近公共祖先

  184. 752. Open the Lock

  185. 123. Best Time to Buy and Sell Stock III

  186. [1004-max-consecutive-ones-iii]

  187. [0670-maximum-swap]

  188. 30. 串联所有单词的子串

  189. [0036-valid-sudoku]

  190. 64. 最小路径和

  191. [2589-minimum-time-to-complete-all-tasks]

  192. 234. Palindrome Linked List

  193. [1052-grumpy-bookstore-owner]

  194. [0514-freedom-trail]

  195. [0522-longest-uncommon-subsequence-ii]

  196. [0994-rotting-oranges]

  197. [0541-reverse-string-ii]

  198. 47. Permutations II

  199. 69. Sqrt(x)

  200. [0584-find-customer-referee]

  201. 83. Remove Duplicates from Sorted List

  202. [1502-can-make-arithmetic-progression-from-sequence]

  203. 94. Binary Tree Inorder Traversal

  204. 617. Merge Two Binary Trees

  205. [1539-kth-missing-positive-number]

  206. 124. 二叉树中的最大路径和

  207. 155. Min Stack

  208. 160. Intersection of Two Linked Lists

  209. [0178-rank-scores]

  210. [0180-consecutive-numbers]

  211. [1581-customer-who-visited-but-did-not-make-any-transactions]

  212. 191. Number of 1 Bits

  213. 208. 实现 Trie (前缀树)

  214. 721. 账户合并

  215. 227. Basic Calculator II

  216. [2769-find-the-maximum-achievable-number]

  217. [0260-single-number-iii]

  218. [2739-total-distance-traveled]

  219. [2813-maximum-elegance-of-a-k-length-subsequence]

  220. 875. Koko Eating Bananas

  221. 409. Longest Palindrome

  222. [0918-maximum-sum-circular-subarray]

  223. 1081. 不同字符的最小子序列

  224. 1049. 最后一块石头的重量 II

  225. 1997. 访问完所有房间的第一天

  226. 316. 去除重复字母

  227. 6. ZigZag Conversion

  228. [1907-count-salary-categories]

  229. 13. Roman to Integer

  230. 32. 最长有效括号

  231. [1953-maximum-number-of-weeks-for-which-you-can-work]

  232. [1934-confirmation-rate]

  233. [1976-number-of-ways-to-arrive-at-destination]

  234. [0044-wildcard-matching]

  235. 52. N-Queens II

  236. [1992-find-all-groups-of-farmland]

  237. 57. Insert Interval

  238. 61. Rotate List

  239. [1965-employees-with-missing-information]

  240. 67. Add Binary

  241. [0068-text-justification]

  242. 79. Word Search

  243. 89. Gray Code

  244. 99. Recover Binary Search Tree

  245. 107. Binary Tree Level Order Traversal II

  246. [2028-find-missing-observations]

  247. 112. Path Sum

  248. 114. Flatten Binary Tree to Linked List

  249. [0115-distinct-subsequences]

  250. 118. Pascal’s Triangle

  251. 130. Surrounded Regions

  252. [0132-palindrome-partitioning-ii]

  253. 133. Clone Graph

  254. 144. Binary Tree Preorder Traversal

  255. 145. Binary Tree Postorder Traversal

  256. 162. Find Peak Element

  257. 166. Fraction to Recurring Decimal

  258. 167. Two Sum II - Input array is sorted

  259. 171. Excel Sheet Column Number

  260. [0174-dungeon-game]

  261. [2105-watering-plants-ii]

  262. [0183-customers-who-never-order]

  263. [0187-repeated-dna-sequences]

  264. 188. Best Time to Buy and Sell Stock IV

  265. [0196-delete-duplicate-emails]

  266. 207. 课程表

  267. [0211-design-add-and-search-words-data-structure]

  268. [0214-shortest-palindrome]

  269. [2162-minimum-cost-to-set-cooking-time]

  270. [0219-contains-duplicate-ii]

  271. 222. Count Complete Tree Nodes

  272. [0224-basic-calculator]

  273. [2157-groups-of-strings]

  274. 232. Implement Queue using Stacks

  275. 237. Delete Node in a Linked List

  276. 242. Valid Anagram

  277. [2181-merge-nodes-in-between-zeros]

  278. 257. Binary Tree Paths

  279. [0258-add-digits]

  280. 278. First Bad Version

  281. [0280-wiggle-sort]

  282. [0290-word-pattern]

  283. 295. 数据流的中位数

  284. 297. Serialize and Deserialize Binary Tree

  285. [0301-remove-invalid-parentheses]

  286. [0306-additive-number]

  287. 309. Best Time to Buy and Sell Stock with Cooldown

  288. [2276-count-integers-in-intervals]

  289. [0312-burst-balloons]

  290. [2244-minimum-rounds-to-complete-all-tasks]

  291. [0315-count-of-smaller-numbers-after-self]

  292. 324. Wiggle Sort II

  293. [0327-count-of-range-sum]

  294. [0332-reconstruct-itinerary]

  295. 334. Increasing Triplet Subsequence

  296. 337. 打家劫舍 III

  297. [2293-min-max-game]

  298. [0345-reverse-vowels-of-a-string]

  299. [2320-count-number-of-ways-to-place-houses]

  300. 350. Intersection of Two Arrays II

  301. [2316-count-unreachable-pairs-of-nodes-in-an-undirected-graph]

  302. [0367-valid-perfect-square]

  303. [0376-wiggle-subsequence]

  304. [0383-ransom-note]

  305. 395. Longest Substring with At Least K Repeating Characters

  306. [0396-rotate-function]

  307. [0403-frog-jump]

  308. 404. Sum of Left Leaves

  309. [0405-convert-a-number-to-hexadecimal]

  310. [0410-split-array-largest-sum]

  311. [2385-amount-of-time-for-binary-tree-to-be-infected]

  312. [0414-third-maximum-number]

  313. 415. 字符串相加

  314. [2386-find-the-k-sum-of-an-array]

  315. [0421-maximum-xor-of-two-numbers-in-an-array]

  316. [2391-minimum-amount-of-time-to-collect-garbage]

  317. [0435-non-overlapping-intervals]

  318. [0440-k-th-smallest-in-lexicographical-order]

  319. [2406-divide-intervals-into-minimum-number-of-groups]

  320. [0443-string-compression]

  321. [2356-number-of-unique-subjects-taught-by-each-teacher]

  322. 448. Find All Numbers Disappeared in an Array

  323. [0451-sort-characters-by-frequency]

  324. 453. Minimum Moves to Equal Array Elements

  325. [0459-repeated-substring-pattern]

  326. 462. Minimum Moves to Equal Array Elements II

  327. [0468-validate-ip-address]

  328. [0475-heaters]

  329. 480. Sliding Window Median

  330. [2439-minimize-maximum-of-array]

  331. [0485-max-consecutive-ones]

  332. [0486-predict-the-winner]

  333. [0498-diagonal-traverse]

  334. [2447-number-of-subarrays-with-gcd-equal-to-k]

  335. 503. Next Greater Element II

  336. [2462-total-cost-to-hire-k-workers]

  337. 513. Find Bottom Left Tree Value

  338. [2476-closest-nodes-queries-in-a-binary-search-tree]

  339. [0521-longest-uncommon-subsequence-i]

  340. 523. Continuous Subarray Sum

  341. [0526-beautiful-arrangement]

  342. [2481-minimum-cuts-to-divide-a-circle]

  343. [0529-minesweeper]

  344. 530. 二叉搜索树的最小绝对差

  345. 538. Convert BST to Greater Tree

  346. [0540-single-element-in-a-sorted-array]

  347. [0542-01-matrix]

  348. [0546-remove-boxes]

  349. 547. 省份数量

  350. [2508-add-edges-to-make-degrees-of-all-nodes-even]

  351. [0552-student-attendance-record-ii]

  352. 567. Permutation in String

  353. [0569-median-employee-salary]

  354. [0574-winning-candidate]

  355. [0577-employee-bonus]

  356. 581. Shortest Unsorted Continuous Subarray

  357. [0585-investments-in-2016]

  358. [0596-classes-more-than-5-students]

  359. [2580-count-ways-to-group-overlapping-ranges]

  360. [0605-can-place-flowers]

  361. [0608-tree-node]

  362. [2588-count-the-number-of-beautiful-subarrays]

  363. [0610-triangle-judgement]

  364. [0614-second-degree-follower]

  365. [2594-minimum-time-to-repair-cars]

  366. [0623-add-one-row-to-tree]

  367. [0632-smallest-range-covering-elements-from-k-lists]

  368. [2552-count-increasing-quadruplets]

  369. [2663-lexicographically-smallest-beautiful-string]

  370. [0642-design-search-autocomplete-system]

  371. [0645-set-mismatch]

  372. 647. Palindromic Substrings

  373. [0650-2-keys-keyboard]

  374. [0653-two-sum-iv-input-is-a-bst]

  375. [0658-find-k-closest-elements]

  376. [0674-longest-continuous-increasing-subsequence]

  377. [0697-degree-of-an-array]

  378. [0712-minimum-ascii-delete-sum-for-two-strings]

  379. [2626-array-reduce-transformation]

  380. 714. Best Time to Buy and Sell Stock with Transaction Fee

  381. 724. Find Pivot Index

  382. [2648-generate-fibonacci-sequence]

  383. [0728-self-dividing-numbers]

  384. [2670-find-the-distinct-difference-array]

  385. [2684-maximum-number-of-moves-in-a-grid]

  386. 746. 使用最小花费爬楼梯

  387. [2703-return-length-of-arguments-passed]

  388. 701. Insert into a Binary Search Tree

  389. [0773-sliding-puzzle]

  390. [2749-minimum-operations-to-make-the-integer-zero]

  391. [0787-cheapest-flights-within-k-stops]

  392. [0794-valid-tic-tac-toe-state]

  393. [0797-all-paths-from-source-to-target]

  394. [2725-interval-cancellation]

  395. [0705-design-hashset]

  396. [2762-continuous-subarrays]

  397. [2771-longest-non-decreasing-subarray-from-two-arrays]

  398. [0805-split-array-with-same-average]

  399. [2800-shortest-string-that-contains-three-strings]

  400. [2810-faulty-keyboard]

  401. [0827-making-a-large-island]

  402. [0828-count-unique-characters-of-all-substrings-of-a-given-string]

  403. [0829-consecutive-numbers-sum]

  404. [2812-find-the-safest-path-in-a-grid]

  405. [0842-split-array-into-fibonacci-sequence]

  406. [0847-shortest-path-visiting-all-nodes]

  407. [0853-car-fleet]

  408. [0857-minimum-cost-to-hire-k-workers]

  409. [0860-lemonade-change]

  410. [0862-shortest-subarray-with-sum-at-least-k]

  411. [0863-all-nodes-distance-k-in-binary-tree]

  412. [0867-transpose-matrix]

  413. 870. Advantage Shuffle

  414. [0886-possible-bipartition]

  415. [0887-super-egg-drop]

  416. [0901-online-stock-span]

  417. 904. Fruit Into Baskets

  418. [0907-sum-of-subarray-minimums]

  419. [0914-x-of-a-kind-in-a-deck-of-cards]

  420. [0924-minimize-malware-spread]

  421. [0928-minimize-malware-spread-ii]

  422. [0930-binary-subarrays-with-sum]

  423. [0938-range-sum-of-bst]

  424. [2896-apply-operations-to-make-two-strings-equal]

  425. [0958-check-completeness-of-a-binary-tree]

  426. [0965-univalued-binary-tree]

  427. [0968-binary-tree-cameras]

  428. 509. Fibonacci Number

  429. [0983-minimum-cost-for-tickets]

  430. [0986-interval-list-intersections]

  431. [2878-get-the-size-of-a-dataframe]

  432. 2850. 将石头分散到网格图的最少移动次数

  433. [1017-convert-to-base-2]

  434. [1027-longest-arithmetic-subsequence]

  435. [1044-longest-duplicate-substring]

  436. 1047. 删除字符串中的所有相邻重复项

  437. [1045-customers-who-bought-all-products]

  438. [2932-maximum-strong-pair-xor-i]

  439. [2928-distribute-candies-among-children-i]

  440. [1079-letter-tile-possibilities]

  441. [1075-project-employees-i]

  442. [2946-matrix-similarity-after-cyclic-shifts]

  443. [2959-number-of-possible-sets-of-closing-branches]

  444. [0511-game-play-analysis-i]

  445. [2965-find-missing-and-repeated-values]

  446. [2952-minimum-number-of-coins-to-be-added]

  447. [1115-print-foobar-alternately]

  448. [1103-distribute-candies-to-people]

  449. [1112-highest-grade-for-each-student]

  450. [1116-print-zero-even-odd]

  451. [1141-user-activity-for-the-past-30-days-i]

  452. [1146-snapshot-array]

  453. [1329-sort-the-matrix-diagonally]

  454. [1148-article-views-i]

  455. [1171-remove-zero-sum-consecutive-nodes-from-linked-list]

  456. [3040-maximum-number-of-operations-with-the-same-score-ii]

  457. [3067-count-pairs-of-connectable-servers-in-a-weighted-tree-network]

  458. [3086-minimum-moves-to-pick-k-ones]

  459. [1174-immediate-food-delivery-ii]

  460. [1405-longest-happy-string]

  461. [3114-latest-time-you-can-obtain-after-replacing-characters]

  462. [1195-fizz-buzz-multithreaded]

  463. [1208-get-equal-substrings-within-budget]

  464. [3099-harshad-number]

  465. [3115-maximum-prime-difference]

  466. [1204-last-person-to-fit-in-the-bus]

  467. [3110-score-of-a-string]

  468. [1219-path-with-maximum-gold]

  469. [1226-the-dining-philosophers]

  470. [1233-remove-sub-folders-from-the-filesystem]

  471. [2312-selling-pieces-of-wood]

  472. [1254-number-of-closed-islands]

  473. [1255-maximum-score-words-formed-by-letters]

  474. [3149-find-the-minimum-cost-array-permutation]

  475. [3160-find-the-number-of-distinct-colors-among-the-balls]

  476. [3171-find-subarray-with-bitwise-or-closest-to-k]

  477. [3180-maximum-total-reward-using-operations-i]

  478. [1268-search-suggestions-system]

  479. [1283-find-the-smallest-divisor-given-a-threshold]

  480. [3197-find-the-minimum-area-to-cover-all-ones-ii]

  481. [1280-students-and-examinations]

  482. [1297-maximum-number-of-occurrences-of-a-substring]

  483. [1349-maximum-students-taking-exam]

  484. [1422-maximum-score-after-splitting-a-string]

  485. [1442-count-triplets-that-can-form-two-arrays-of-equal-xor]

  486. [1450-number-of-students-doing-homework-at-a-given-time]

  487. [1490-clone-n-ary-tree]

  488. [1518-water-bottles]

  489. [1530-number-of-good-leaf-nodes-pairs]

  490. [1542-find-longest-awesome-substring]

  491. [1574-shortest-subarray-to-be-removed-to-make-array-sorted]

  492. [1600-throne-inheritance]

  493. [1622-fancy-sequence]

  494. [1673-find-the-most-competitive-subsequence]

  495. [1702-maximum-binary-string-after-change]

  496. [1695-maximum-erasure-value]

  497. [1705-maximum-number-of-eaten-apples]

  498. [1723-find-minimum-time-to-finish-all-jobs]

  499. [1683-invalid-tweets]

  500. [1738-find-kth-largest-xor-coordinate-value]

  501. [1769-minimum-number-of-operations-to-move-all-balls-to-each-box]

  502. [1789-primary-department-for-each-employee]

  503. [1839-longest-substring-of-all-vowels-in-order]

  504. [1849-splitting-a-string-into-descending-consecutive-values]

  505. [1884-egg-drop-with-2-eggs-and-n-floors]