cswork / companiesOpen practice workspace

BY CATEGORY · TikTok / ByteDance

TikTok / ByteDance Coding & algorithms Interview Questions

Prepare for TikTok / ByteDance Coding & algorithms questions: 93 interview questions from real interviews. Read, practise and mock them on CSWork.

Questions
93
Updated
2026-10-02

Interview questions 93

Filter in the workspace
  1. CodeClockwise Spiral Traversal of a Matrix With O(1) Extra Space and No MutationMedium
  2. CodeCombined Median of Two Sorted Integer Lists in Logarithmic TimeHard
  3. CodeCheck Whether an n x n Tic-Tac-Toe Game Is Over (Win or Draw)Medium
  4. CodeLongest Contiguous Substring in Which No Character RepeatsMedium
  5. CodeLexicographically Smallest Course Order From Prerequisite PairsMedium
  6. CodeFind the Earliest Contiguous Removal That Balances Index SumsMedium
  7. QEnumerate All Simple Directed PathsMedium
  8. CodeEnumerate All Simple Directed CyclesMedium
  9. CodeSchedule Seller Tasks with Tier-Weighted Round RobinHard
  10. CodeRemove the Fewest Overlapping IntervalsHard
  11. CodeImplement Sorted Search and Array UpdatesMedium
  12. CodeAssign Meetings and Find the Most-Used RoomHard
  13. CodeFind Maximum Candies With Two TypesMedium
  14. CodeImplement Sliding Windows and LRU CacheMedium
  15. CodeCount Numbers with an Even Number of DigitsMedium
  16. CodeCount House Segments After Sequential DemolitionsMedium
  17. CodePlace Non-Attacking QueensHard
  18. CodeCompute Minimum Parentheses AdditionsMedium
  19. CodeReturn the Most Frequent Integer with a Stable Tie-BreakerEasy
  20. CodeEqualize Root-to-Leaf Sums in an N-ary TreeEasy
  21. CodeImplement Expiring LRU CacheHard
  22. CodeFind Words in a Character GridMedium
  23. CodeImplement Hash Map OperationsMedium
  24. CodeProbability That One Fair Die Beats AnotherMedium
  25. CodeFind Maximum Chain ActivationsMedium
  26. CodeReverse Words While Preserving SpacesMedium
  27. CodeCount Same-Day Registered PostersMedium
  28. CodeCompute square root with precisionHard
  29. QImplement several OA simulation problemsEasy
  30. QSolve interval merging and histogram areaMedium
  31. CodeBuild a validated add-sub calculatorMedium
  32. CodeImplement stacks, streaming median, and upward path sumEasy
  33. CodeCount Similar Photo GroupsMedium
  34. CodeMaximize sum with no adjacent elementsMedium
  35. CodeImplement stack variants and path-sum checkMedium
  36. CodeFind Missing Ranges with BoundsEasy
  37. CodeDetermine whether squares can fitHard
  38. CodeSolve Search Speed and String ProductMedium
  39. QMerge Overlapping Time WindowsMedium
  40. QDetermine Whether All Courses Can Be CompletedMedium
  41. CodeFind Highest Product SegmentMedium
  42. CodeMaximize watch time under adjacency constraintHard
  43. CodeIntersect Two Sorted Lists of Disjoint IntervalsMedium
  44. CodeDetermine if a string can be segmentedMedium
  45. QGenerate all safe queen placements on boardHard
  46. CodeSolve pair-counting and account-merging problemsMedium
  47. CodeFind kth smallest in sorted 2D matrixMedium
  48. CodeFind k-th largest element in arrayMedium
  49. CodeFind first and last index of targetEasy
  50. CodeCount islands using BFS without modifying gridHard
  51. CodeValidate a bracket stringMedium
  52. CodeMaximize products bought under budgetMedium
  53. QImplement streaming SRM detector with late eventsMedium
  54. QAnalyze DFS, BFS, and A* trade-offsMedium
  55. CodeImplement K-means and run two iterationsMedium
  56. CodeCount Special Subarrays by Modular FrequencyHard
  57. QFind top-k rated nodes via traversalMedium
  58. QCompute rooms and verify tree completenessMedium
  59. CodeSolve grid min path and sqrt by binary searchMedium
  60. CodeSegment a message with width-constrained suffixesMedium