# Bytedance Coding Interview Questions

> 64 DSA problems asked in Bytedance coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/bytedance
Last updated: 2026-11-28

64 DSA problems tagged as asked in Bytedance coding interviews and online assessments. Below are all 64: 6 easy, 49 medium and 9 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Bytedance DSA problems, easiest first

1. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
2. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
3. [Intersection of Two Linked Lists](https://www.internhack.in/learn/dsa/problem/intersection-of-two-linked-lists) (Easy)
4. [Reverse Linked List](https://www.internhack.in/learn/dsa/problem/reverse-linked-list) (Easy)
5. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
6. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
7. [Accounts Merge](https://www.internhack.in/learn/dsa/problem/accounts-merge) (Medium)
8. [Add Two Numbers](https://www.internhack.in/learn/dsa/problem/add-two-numbers) (Medium)
9. [Basic Calculator II](https://www.internhack.in/learn/dsa/problem/basic-calculator-ii) (Medium)
10. [Clone Graph](https://www.internhack.in/learn/dsa/problem/clone-graph) (Medium)
11. [Combination Sum](https://www.internhack.in/learn/dsa/problem/combination-sum) (Medium)
12. [Combination Sum II](https://www.internhack.in/learn/dsa/problem/combination-sum-ii) (Medium)
13. [Course Schedule](https://www.internhack.in/learn/dsa/problem/course-schedule) (Medium)
14. [Decode String](https://www.internhack.in/learn/dsa/problem/decode-string) (Medium)
15. [Delete Node in a BST](https://www.internhack.in/learn/dsa/problem/delete-node-in-a-bst) (Medium)
16. [Design Memory Allocator](https://www.internhack.in/learn/dsa/problem/design-memory-allocator) (Medium)
17. [Find Peak Element](https://www.internhack.in/learn/dsa/problem/find-peak-element) (Medium)
18. [Find the Length of the Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/find-the-length-of-the-longest-common-prefix) (Medium)
19. [First Day Where You Have Been in All the Rooms](https://www.internhack.in/learn/dsa/problem/first-day-where-you-have-been-in-all-the-rooms) (Medium)
20. [House Robber](https://www.internhack.in/learn/dsa/problem/house-robber) (Medium)
21. [House Robber II](https://www.internhack.in/learn/dsa/problem/house-robber-ii) (Medium)
22. [Insert Delete GetRandom O(1)](https://www.internhack.in/learn/dsa/problem/insert-delete-getrandom-o1) (Medium)
23. [Jump Game](https://www.internhack.in/learn/dsa/problem/jump-game) (Medium)
24. [Kth Largest Element in an Array](https://www.internhack.in/learn/dsa/problem/kth-largest-element-in-an-array) (Medium)
25. [Longest Common Subsequence](https://www.internhack.in/learn/dsa/problem/longest-common-subsequence) (Medium)
26. [Longest Consecutive Sequence](https://www.internhack.in/learn/dsa/problem/longest-consecutive-sequence) (Medium)
27. [Longest Palindromic Substring](https://www.internhack.in/learn/dsa/problem/longest-palindromic-substring) (Medium)
28. [Longest Repeating Character Replacement](https://www.internhack.in/learn/dsa/problem/longest-repeating-character-replacement) (Medium)
29. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
30. [LRU Cache](https://www.internhack.in/learn/dsa/problem/lru-cache) (Medium)
31. [Maximal Square](https://www.internhack.in/learn/dsa/problem/maximal-square) (Medium)
32. [Maximum Subarray](https://www.internhack.in/learn/dsa/problem/maximum-subarray) (Medium)
33. [Maximum Width of Binary Tree](https://www.internhack.in/learn/dsa/problem/maximum-width-of-binary-tree) (Medium)
34. [Merge Intervals](https://www.internhack.in/learn/dsa/problem/merge-intervals) (Medium)
35. [Minimum Area Rectangle](https://www.internhack.in/learn/dsa/problem/minimum-area-rectangle) (Medium)
36. [Minimum Swaps to Group All 1's Together II](https://www.internhack.in/learn/dsa/problem/minimum-swaps-to-group-all-1s-together-ii) (Medium)
37. [Multiply Strings](https://www.internhack.in/learn/dsa/problem/multiply-strings) (Medium)
38. [Number of Good Leaf Nodes Pairs](https://www.internhack.in/learn/dsa/problem/number-of-good-leaf-nodes-pairs) (Medium)
39. [Number of Islands](https://www.internhack.in/learn/dsa/problem/number-of-islands) (Medium)
40. [Open the Lock](https://www.internhack.in/learn/dsa/problem/open-the-lock) (Medium)
41. [Product of the Last K Numbers](https://www.internhack.in/learn/dsa/problem/product-of-the-last-k-numbers) (Medium)
42. [Remove Duplicate Letters](https://www.internhack.in/learn/dsa/problem/remove-duplicate-letters) (Medium)
43. [Remove K Digits](https://www.internhack.in/learn/dsa/problem/remove-k-digits) (Medium)
44. [Remove Zero Sum Consecutive Nodes from Linked List](https://www.internhack.in/learn/dsa/problem/remove-zero-sum-consecutive-nodes-from-linked-list) (Medium)
45. [Restore IP Addresses](https://www.internhack.in/learn/dsa/problem/restore-ip-addresses) (Medium)
46. [Reverse Linked List II](https://www.internhack.in/learn/dsa/problem/reverse-linked-list-ii) (Medium)
47. [Rotting Oranges](https://www.internhack.in/learn/dsa/problem/rotting-oranges) (Medium)
48. [Search a 2D Matrix II](https://www.internhack.in/learn/dsa/problem/search-a-2d-matrix-ii) (Medium)
49. [Search in Rotated Sorted Array](https://www.internhack.in/learn/dsa/problem/search-in-rotated-sorted-array) (Medium)
50. [Shortest Bridge](https://www.internhack.in/learn/dsa/problem/shortest-bridge) (Medium)
51. [Smallest Subsequence of Distinct Characters](https://www.internhack.in/learn/dsa/problem/smallest-subsequence-of-distinct-characters) (Medium)
52. [Sort List](https://www.internhack.in/learn/dsa/problem/sort-list) (Medium)
53. [Subarray Sum Equals K](https://www.internhack.in/learn/dsa/problem/subarray-sum-equals-k) (Medium)
54. [Subsets](https://www.internhack.in/learn/dsa/problem/subsets) (Medium)
55. [Top K Frequent Elements](https://www.internhack.in/learn/dsa/problem/top-k-frequent-elements) (Medium)
56. [Basic Calculator](https://www.internhack.in/learn/dsa/problem/basic-calculator) (Hard)
57. [Maximum Profit in Job Scheduling](https://www.internhack.in/learn/dsa/problem/maximum-profit-in-job-scheduling) (Hard)
58. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
59. [Regular Expression Matching](https://www.internhack.in/learn/dsa/problem/regular-expression-matching) (Hard)
60. [Shortest Distance from All Buildings](https://www.internhack.in/learn/dsa/problem/shortest-distance-from-all-buildings) (Hard)
61. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
62. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)
63. [Trapping Rain Water II](https://www.internhack.in/learn/dsa/problem/trapping-rain-water-ii) (Hard)
64. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)

## Prepare for the rest of the Bytedance process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
