Bytedance Coding Interview Questions

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 (Easy)
  2. Climbing Stairs (Easy)
  3. Intersection of Two Linked Lists (Easy)
  4. Reverse Linked List (Easy)
  5. Two Sum (Easy)
  6. Valid Parentheses (Easy)
  7. Accounts Merge (Medium)
  8. Add Two Numbers (Medium)
  9. Basic Calculator II (Medium)
  10. Clone Graph (Medium)
  11. Combination Sum (Medium)
  12. Combination Sum II (Medium)
  13. Course Schedule (Medium)
  14. Decode String (Medium)
  15. Delete Node in a BST (Medium)
  16. Design Memory Allocator (Medium)
  17. Find Peak Element (Medium)
  18. Find the Length of the Longest Common Prefix (Medium)
  19. First Day Where You Have Been in All the Rooms (Medium)
  20. House Robber (Medium)
  21. House Robber II (Medium)
  22. Insert Delete GetRandom O(1) (Medium)
  23. Jump Game (Medium)
  24. Kth Largest Element in an Array (Medium)
  25. Longest Common Subsequence (Medium)
  26. Longest Consecutive Sequence (Medium)
  27. Longest Palindromic Substring (Medium)
  28. Longest Repeating Character Replacement (Medium)
  29. Longest Substring Without Repeating Characters (Medium)
  30. LRU Cache (Medium)
  31. Maximal Square (Medium)
  32. Maximum Subarray (Medium)
  33. Maximum Width of Binary Tree (Medium)
  34. Merge Intervals (Medium)
  35. Minimum Area Rectangle (Medium)
  36. Minimum Swaps to Group All 1's Together II (Medium)
  37. Multiply Strings (Medium)
  38. Number of Good Leaf Nodes Pairs (Medium)
  39. Number of Islands (Medium)
  40. Open the Lock (Medium)
  41. Product of the Last K Numbers (Medium)
  42. Remove Duplicate Letters (Medium)
  43. Remove K Digits (Medium)
  44. Remove Zero Sum Consecutive Nodes from Linked List (Medium)
  45. Restore IP Addresses (Medium)
  46. Reverse Linked List II (Medium)
  47. Rotting Oranges (Medium)
  48. Search a 2D Matrix II (Medium)
  49. Search in Rotated Sorted Array (Medium)
  50. Shortest Bridge (Medium)
  51. Smallest Subsequence of Distinct Characters (Medium)
  52. Sort List (Medium)
  53. Subarray Sum Equals K (Medium)
  54. Subsets (Medium)
  55. Top K Frequent Elements (Medium)
  56. Basic Calculator (Hard)
  57. Maximum Profit in Job Scheduling (Hard)
  58. Merge k Sorted Lists (Hard)
  59. Regular Expression Matching (Hard)
  60. Shortest Distance from All Buildings (Hard)
  61. Text Justification (Hard)
  62. Trapping Rain Water (Hard)
  63. Trapping Rain Water II (Hard)
  64. Word Ladder (Hard)

Prepare for the rest of the Bytedance process

Other companies