Files
LeetcodeTop/bytedance/latest.md
2021-04-07 12:25:58 +08:00

30 KiB

字节跳动最新涉及的leetcode题目

本次统计了3.1日~4.6日的289篇面经。

最近我开发了一个简易版网站https://codetop.cc/

网站比静态的markdown更方便大家按公司/部门/岗位查询题目

欢迎大家前来体验❤️

题目 出现次数 链接
25. K 个一组翻转链表 15 https://leetcode-cn.com/problems/reverse-nodes-in-k-group
215. 数组中的第K个最大元素 15 https://leetcode-cn.com/problems/kth-largest-element-in-an-array
3. 无重复字符的最长子串 14 https://leetcode-cn.com/problems/longest-substring-without-repeating-characters
103. 二叉树的锯齿形层次遍历 13 https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal
160. 相交链表 12 https://leetcode-cn.com/problems/intersection-of-two-linked-lists
56. 合并区间 10 https://leetcode-cn.com/problems/merge-intervals
88. 合并两个有序数组 9 https://leetcode-cn.com/problems/merge-sorted-array
206. 反转链表 8 https://leetcode-cn.com/problems/reverse-linked-list
200. 岛屿数量 8 https://leetcode-cn.com/problems/number-of-islands
5. 最长回文子串 8 https://leetcode-cn.com/problems/longest-palindromic-substring
1. 两数之和 8 https://leetcode-cn.com/problems/two-sum
300. 最长上升子序列 7 https://leetcode-cn.com/problems/longest-increasing-subsequence
15. 三数之和 7 https://leetcode-cn.com/problems/3sum
剑指 Offer 22. 链表中倒数第k个节点 7 https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof
21. 合并两个有序链表 7 https://leetcode-cn.com/problems/merge-two-sorted-lists
补充题4. 手撕快速排序 7 https://leetcode-cn.com/problems/undefined
121. 买卖股票的最佳时机 6 https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock
83. 删除排序链表中的重复元素 6 https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list
141. 环形链表 6 https://leetcode-cn.com/problems/linked-list-cycle
33. 搜索旋转排序数组 6 https://leetcode-cn.com/problems/search-in-rotated-sorted-array
112. 路径总和 6 https://leetcode-cn.com/problems/path-sum
958. 二叉树的完全性检验 5 https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree
101. 对称二叉树 5 https://leetcode-cn.com/problems/symmetric-tree
补充题1. 排序奇升偶降链表 5 https://leetcode-cn.com/problems/undefined
146. LRU缓存机制 5 https://leetcode-cn.com/problems/lru-cache
54. 螺旋矩阵 5 https://leetcode-cn.com/problems/spiral-matrix
142. 环形链表 II 5 https://leetcode-cn.com/problems/linked-list-cycle-ii
94. 二叉树的中序遍历 5 https://leetcode-cn.com/problems/binary-tree-inorder-traversal
23. 合并K个排序链表 5 https://leetcode-cn.com/problems/merge-k-sorted-lists
102. 二叉树的层序遍历 5 https://leetcode-cn.com/problems/binary-tree-level-order-traversal
470. 用 Rand7() 实现 Rand10() 5 https://leetcode-cn.com/problems/implement-rand10-using-rand7
124. 二叉树中的最大路径和 5 https://leetcode-cn.com/problems/binary-tree-maximum-path-sum
230. 二叉搜索树中第K小的元素 5 https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst
236. 二叉树的最近公共祖先 5 https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree
70. 爬楼梯 4 https://leetcode-cn.com/problems/climbing-stairs
169. 多数元素 4 https://leetcode-cn.com/problems/majority-element
143. 重排链表 4 https://leetcode-cn.com/problems/reorder-list
240. 搜索二维矩阵 II 4 https://leetcode-cn.com/problems/search-a-2d-matrix-ii
剑指 Offer 62. 圆圈中最后剩下的数字 4 https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof
165. 比较版本号 4 https://leetcode-cn.com/problems/compare-version-numbers
232. 用栈实现队列 4 https://leetcode-cn.com/problems/implement-queue-using-stacks
22. 括号生成 4 https://leetcode-cn.com/problems/generate-parentheses
92. 反转链表 II 4 https://leetcode-cn.com/problems/reverse-linked-list-ii
98. 验证二叉搜索树 4 https://leetcode-cn.com/problems/validate-binary-search-tree
46. 全排列 4 https://leetcode-cn.com/problems/permutations
718. 最长重复子数组 4 https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray
69. x 的平方根 4 https://leetcode-cn.com/problems/sqrtx
122. 买卖股票的最佳时机 II 3 https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii
39. 组合总和 3 https://leetcode-cn.com/problems/combination-sum
113. 路径总和 II 3 https://leetcode-cn.com/problems/path-sum-ii
32. 最长有效括号 3 https://leetcode-cn.com/problems/longest-valid-parentheses
224. 基本计算器 3 https://leetcode-cn.com/problems/basic-calculator
226. 翻转二叉树 3 https://leetcode-cn.com/problems/invert-binary-tree
20. 有效的括号 3 https://leetcode-cn.com/problems/valid-parentheses
53. 最大子序和 3 https://leetcode-cn.com/problems/maximum-subarray
64. 最小路径和 3 https://leetcode-cn.com/problems/minimum-path-sum
42. 接雨水 3 https://leetcode-cn.com/problems/trapping-rain-water
199. 二叉树的右视图 3 https://leetcode-cn.com/problems/binary-tree-right-side-view
补充题9. 36进制加法 3 https://leetcode-cn.com/problems/undefined
72. 编辑距离 3 https://leetcode-cn.com/problems/edit-distance
138. 复制带随机指针的链表 3 https://leetcode-cn.com/problems/copy-list-with-random-pointer
415. 字符串相加 3 https://leetcode-cn.com/problems/add-strings
227. 基本计算器 II 3 https://leetcode-cn.com/problems/basic-calculator-ii
129. 求根到叶子节点数字之和 3 https://leetcode-cn.com/problems/sum-root-to-leaf-numbers
补充题2. 圆环回原点问题 3 https://leetcode-cn.com/problems/undefined
75. 颜色分类 2 https://leetcode-cn.com/problems/sort-colors
41. 缺失的第一个正数 2 https://leetcode-cn.com/problems/first-missing-positive
剑指 Offer 36. 二叉搜索树与双向链表 2 https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof
26. 删除排序数组中的重复项 2 https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array
76. 最小覆盖子串 2 https://leetcode-cn.com/problems/minimum-window-substring
105. 从前序与中序遍历序列构造二叉树 2 https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
225. 用队列实现栈 2 https://leetcode-cn.com/problems/implement-stack-using-queues
647. 回文子串 2 https://leetcode-cn.com/problems/palindromic-substrings
剑指 Offer 27. 二叉树的镜像 2 https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof
4. 寻找两个正序数组的中位数 2 https://leetcode-cn.com/problems/median-of-two-sorted-arrays
209. 长度最小的子数组 2 https://leetcode-cn.com/problems/minimum-size-subarray-sum
剑指 Offer 54. 二叉搜索树的第k大节点 2 https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof
34. 在排序数组中查找元素的第一个和最后一个位置 2 https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array
剑指 Offer 10- I. 斐波那契数列 2 https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof
125. 验证回文串 2 https://leetcode-cn.com/problems/valid-palindrome
680. 验证回文字符串 Ⅱ 2 https://leetcode-cn.com/problems/valid-palindrome-ii
110. 平衡二叉树 2 https://leetcode-cn.com/problems/balanced-binary-tree
补充题5. 手撕归并排序 2 https://leetcode-cn.com/problems/undefined
148. 排序链表 2 https://leetcode-cn.com/problems/sort-list
151. 翻转字符串里的单词 2 https://leetcode-cn.com/problems/reverse-words-in-a-string
108. 将有序数组转换为二叉搜索树 2 https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree
补充题6. 手撕堆排序 2 https://leetcode-cn.com/problems/undefined
862. 和至少为 K 的最短子数组 2 https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k
剑指 Offer 09. 用两个栈实现队列 2 https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof
8. 字符串转换整数 (atoi) 2 https://leetcode-cn.com/problems/string-to-integer-atoi
2. 两数相加 2 https://leetcode-cn.com/problems/add-two-numbers
补充题14. 阿拉伯数字转中文数字 2 https://leetcode-cn.com/problems/undefined
48. 旋转图像 2 https://leetcode-cn.com/problems/rotate-image
155. 最小栈 2 https://leetcode-cn.com/problems/min-stack
61. 旋转链表 2 https://leetcode-cn.com/problems/rotate-list
468. 验证IP地址 2 https://leetcode-cn.com/problems/validate-ip-address
297. 二叉树的序列化与反序列化 2 https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree
补充题3. 求区间最小数乘区间和的最大值 2 https://leetcode-cn.com/problems/undefined
349. 两个数组的交集 2 https://leetcode-cn.com/problems/intersection-of-two-arrays
695. 岛屿的最大面积 2 https://leetcode-cn.com/problems/max-area-of-island
11. 盛最多水的容器 2 https://leetcode-cn.com/problems/container-with-most-water
739. 每日温度 2 https://leetcode-cn.com/problems/daily-temperatures
78. 子集 2 https://leetcode-cn.com/problems/subsets
23. 合并K个升序链表 2 https://leetcode-cn.com/problems/merge-k-sorted-lists
287. 寻找重复数 1 https://leetcode-cn.com/problems/find-the-duplicate-number
572. 另一个树的子树 1 https://leetcode-cn.com/problems/subtree-of-another-tree
977. 有序数组的平方 1 https://leetcode-cn.com/problems/squares-of-a-sorted-array
974. 和可被 K 整除的子数组 1 https://leetcode-cn.com/problems/subarray-sums-divisible-by-k
剑指 Offer 04. 二维数组中的查找 1 https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof
59. 螺旋矩阵 II 1 https://leetcode-cn.com/problems/spiral-matrix-ii
1438. 绝对差不超过限制的最长连续子数组 1 https://leetcode-cn.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面 1 https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof
836. 矩形重叠 1 https://leetcode-cn.com/problems/rectangle-overlap
91. 解码方法 1 https://leetcode-cn.com/problems/decode-ways
179. 最大数 1 https://leetcode-cn.com/problems/largest-number
剑指 Offer 17. 打印从1到最大的n位数 1 https://leetcode-cn.com/problems/da-yin-cong-1dao-zui-da-de-nwei-shu-lcof
剑指 Offer 46. 把数字翻译成字符串 1 https://leetcode-cn.com/problems/ba-shu-zi-fan-yi-cheng-zi-fu-chuan-lcof
60. 排列序列 1 https://leetcode-cn.com/problems/permutation-sequence
104. 二叉树的最大深度 1 https://leetcode-cn.com/problems/maximum-depth-of-binary-tree
面试题 17.24. 最大子矩阵 1 https://leetcode-cn.com/problems/max-submatrix-lcci
547. 省份数量(原朋友圈) 1 https://leetcode-cn.com/problems/friend-circles
剑指 Offer 51. 数组中的逆序对 1 https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof
补充题10. 36进制减法 1 https://leetcode-cn.com/problems/undefined
198. 打家劫舍 1 https://leetcode-cn.com/problems/house-robber
543. 二叉树的直径 1 https://leetcode-cn.com/problems/diameter-of-binary-tree
460. LFU缓存 1 https://leetcode-cn.com/problems/lfu-cache
1302. 层数最深叶子节点的和 1 https://leetcode-cn.com/problems/deepest-leaves-sum
189. 旋转数组 1 https://leetcode-cn.com/problems/rotate-array
361. 轰炸敌人 1 https://leetcode-cn.com/problems/bomb-enemy
704. 二分查找 1 https://leetcode-cn.com/problems/binary-search
127. 单词接龙 1 https://leetcode-cn.com/problems/word-ladder
96. 不同的二叉搜索树 1 https://leetcode-cn.com/problems/unique-binary-search-trees
16. 最接近的三数之和 1 https://leetcode-cn.com/problems/3sum-closest
10. 正则表达式匹配 1 https://leetcode-cn.com/problems/regular-expression-matching
120. 三角形最小路径和 1 https://leetcode-cn.com/problems/triangle
239. 滑动窗口最大值 1 https://leetcode-cn.com/problems/sliding-window-maximum
129. 求根节点到叶节点数字之和 1 https://leetcode-cn.com/problems/sum-root-to-leaf-numbers
1047. 删除字符串中的所有相邻重复项 1 https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string
剑指 Offer 55 - I. 二叉树的深度 1 https://leetcode-cn.com/problems/er-cha-shu-de-shen-du-lcof
面试题 08.05. 递归乘法 1 https://leetcode-cn.com/problems/recursive-mulitply-lcci
670. 最大交换 1 https://leetcode-cn.com/problems/maximum-swap
93. 复原IP地址 1 https://leetcode-cn.com/problems/restore-ip-addresses
405. 数字转换为十六进制数 1 https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal
1420. 生成数组 1 https://leetcode-cn.com/problems/build-array-where-you-can-find-the-maximum-exactly-k-comparisons
14. 最长公共前缀 1 https://leetcode-cn.com/problems/longest-common-prefix
429. N 叉树的层序遍历 1 https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal
93. 复原 IP 地址 1 https://leetcode-cn.com/problems/restore-ip-addresses
136. 只出现一次的数字 1 https://leetcode-cn.com/problems/single-number
394. 字符串解码 1 https://leetcode-cn.com/problems/decode-string
18. 四数之和 1 https://leetcode-cn.com/problems/4sum
329. 矩阵中的最长递增路径 1 https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix
191. 位1的个数 1 https://leetcode-cn.com/problems/number-of-1-bits
887. 鸡蛋掉落 1 https://leetcode-cn.com/problems/super-egg-drop
剑指 Offer 11. 旋转数组的最小数字 1 https://leetcode-cn.com/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof
153. 寻找旋转排序数组中的最小值 1 https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array
611. 有效三角形的个数 1 https://leetcode-cn.com/problems/valid-triangle-number
剑指 Offer 03. 数组中重复的数字 1 https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof
62. 不同路径 1 https://leetcode-cn.com/problems/unique-paths
322. 零钱兑换 1 https://leetcode-cn.com/problems/coin-change
31. 下一个排列 1 https://leetcode-cn.com/problems/next-permutation
765. 情侣牵手 1 https://leetcode-cn.com/problems/couples-holding-hands
77. 组合 1 https://leetcode-cn.com/problems/combinations
378. 有序矩阵中第 K 小的元素 1 https://leetcode-cn.com/problems/kth-smallest-element-in-a-sorted-matrix
19. 删除链表的倒数第N个节点 1 https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list
106. 从中序与后序遍历序列构造二叉树 1 https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal
剑指 Offer 33. 二叉搜索树的后序遍历序列 1 https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof
498. 对角线遍历 1 https://leetcode-cn.com/problems/diagonal-traverse
剑指 Offer 38. 字符串的排列 1 https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof
103. 二叉树的锯齿形层序遍历 1 https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal
402. 移掉K位数字 1 https://leetcode-cn.com/problems/remove-k-digits
334. 递增的三元子序列 1 https://leetcode-cn.com/problems/increasing-triplet-subsequence
19. 删除链表的倒数第 N 个结点 1 https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list
429. N叉树的层序遍历 1 https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal
213. 打家劫舍 II 1 https://leetcode-cn.com/problems/house-robber-ii
剑指 Offer 45. 把数组排成最小的数 1 https://leetcode-cn.com/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof
347. 前 K 个高频元素 1 https://leetcode-cn.com/problems/top-k-frequent-elements
416. 分割等和子集 1 https://leetcode-cn.com/problems/partition-equal-subset-sum
207. 课程表 1 https://leetcode-cn.com/problems/course-schedule
871. 最低加油次数 1 https://leetcode-cn.com/problems/minimum-number-of-refueling-stops
763. 划分字母区间 1 https://leetcode-cn.com/problems/partition-labels
162. 寻找峰值 1 https://leetcode-cn.com/problems/find-peak-element
556. 下一个更大元素 III 1 https://leetcode-cn.com/problems/next-greater-element-iii
662. 二叉树最大宽度 1 https://leetcode-cn.com/problems/maximum-width-of-binary-tree
617. 合并二叉树 1 https://leetcode-cn.com/problems/merge-two-binary-trees