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