众所周知,字节跳动面试非常喜欢考算法题。
Leetcode官方的企业题库不仅付费,而且题量非常大。
因此,我从20年7月开始,手动整理牛客面经涉及的Leetcode算法题,并按照频度由高到低进行了排列。以下列出的250多道高频题目。
如果你想查看按部门、岗位查看高频算法题,或者查看其他大厂的题库,可以使用我开发的CodeTop:https://codetop.cc
字节跳动题库已覆盖抖音、飞书、架构、data、商业变现、懂车帝、电商、今日头条等20多个部门。
字节跳动高频题(更新至2021年4.10日)
题目 | 出现次数 | 链接 |
---|---|---|
3. 无重复字符的最长子串 | 87 | https://leetcode-cn.com/problems/longest-substring-without-repeating-characters |
25. K 个一组翻转链表 | 71 | https://leetcode-cn.com/problems/reverse-nodes-in-k-group |
206. 反转链表 | 70 | https://leetcode-cn.com/problems/reverse-linked-list |
215. 数组中的第K个最大元素 | 68 | https://leetcode-cn.com/problems/kth-largest-element-in-an-array |
103. 二叉树的锯齿形层次遍历 | 53 | https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal |
15. 三数之和 | 53 | https://leetcode-cn.com/problems/3sum |
160. 相交链表 | 53 | https://leetcode-cn.com/problems/intersection-of-two-linked-lists |
146. LRU缓存机制 | 51 | https://leetcode-cn.com/problems/lru-cache |
121. 买卖股票的最佳时机 | 47 | https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock |
1. 两数之和 | 43 | https://leetcode-cn.com/problems/two-sum |
236. 二叉树的最近公共祖先 | 35 | https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree |
53. 最大子序和 | 34 | https://leetcode-cn.com/problems/maximum-subarray |
415. 字符串相加 | 33 | https://leetcode-cn.com/problems/add-strings |
21. 合并两个有序链表 | 32 | https://leetcode-cn.com/problems/merge-two-sorted-lists |
42. 接雨水 | 31 | https://leetcode-cn.com/problems/trapping-rain-water |
199. 二叉树的右视图 | 30 | https://leetcode-cn.com/problems/binary-tree-right-side-view |
88. 合并两个有序数组 | 28 | https://leetcode-cn.com/problems/merge-sorted-array |
141. 环形链表 | 28 | https://leetcode-cn.com/problems/linked-list-cycle |
33. 搜索旋转排序数组 | 28 | https://leetcode-cn.com/problems/search-in-rotated-sorted-array |
54. 螺旋矩阵 | 28 | https://leetcode-cn.com/problems/spiral-matrix |
102. 二叉树的层序遍历 | 26 | https://leetcode-cn.com/problems/binary-tree-level-order-traversal |
20. 有效的括号 | 26 | https://leetcode-cn.com/problems/valid-parentheses |
105. 从前序与中序遍历序列构造二叉树 | 25 | https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal |
200. 岛屿数量 | 25 | https://leetcode-cn.com/problems/number-of-islands |
46. 全排列 | 23 | https://leetcode-cn.com/problems/permutations |
142. 环形链表 II | 22 | https://leetcode-cn.com/problems/linked-list-cycle-ii |
56. 合并区间 | 22 | https://leetcode-cn.com/problems/merge-intervals |
300. 最长上升子序列 | 22 | https://leetcode-cn.com/problems/longest-increasing-subsequence |
69. x 的平方根 | 22 | https://leetcode-cn.com/problems/sqrtx |
232. 用栈实现队列 | 21 | https://leetcode-cn.com/problems/implement-queue-using-stacks |
124. 二叉树中的最大路径和 | 21 | https://leetcode-cn.com/problems/binary-tree-maximum-path-sum |
23. 合并K个排序链表 | 21 | https://leetcode-cn.com/problems/merge-k-sorted-lists |
5. 最长回文子串 | 21 | https://leetcode-cn.com/problems/longest-palindromic-substring |
94. 二叉树的中序遍历 | 20 | https://leetcode-cn.com/problems/binary-tree-inorder-traversal |
155. 最小栈 | 20 | https://leetcode-cn.com/problems/min-stack |
143. 重排链表 | 20 | https://leetcode-cn.com/problems/reorder-list |
41. 缺失的第一个正数 | 19 | https://leetcode-cn.com/problems/first-missing-positive |
101. 对称二叉树 | 19 | https://leetcode-cn.com/problems/symmetric-tree |
113. 路径总和 II | 19 | https://leetcode-cn.com/problems/path-sum-ii |
958. 二叉树的完全性检验 | 18 | https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree |
112. 路径总和 | 17 | https://leetcode-cn.com/problems/path-sum |
70. 爬楼梯 | 17 | https://leetcode-cn.com/problems/climbing-stairs |
169. 多数元素 | 17 | https://leetcode-cn.com/problems/majority-element |
剑指 Offer 22. 链表中倒数第k个节点 | 17 | https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof |
98. 验证二叉搜索树 | 17 | https://leetcode-cn.com/problems/validate-binary-search-tree |
39. 组合总和 | 16</ |