TikTok Interview Prep (2-1 / 2-2 / 3-1)

TikTok runs an algorithm-first loop. Where a US product company might give you one coding round and two design or behavioural rounds, TikTok gives you several technical rounds in a row, each typically opening with fifteen to twenty minutes of CS fundamentals before the coding problem. The weighting is unusual: raw problem-solving speed carries the loop, and a strong project history does not compensate for a missed optimal solution.

Two things catch candidates out. The rounds are unlocked sequentially rather than run as a single onsite day, so each one is an elimination gate and the whole process stretches over weeks. And interviewers are often in a different timezone from you, which means early-morning or late-evening slots and a lot of back-and-forth with recruiting between rounds.


Interview Process

Stage Duration Focus
Recruiter Screen 20-30 min Role, location, timezone, level mapping
Online Assessment ~90 min 2-3 coding problems, medium to hard
Technical Round 1 45-60 min CS fundamentals then 1-2 coding problems
Technical Round 2 45-60 min Coding plus a project deep dive
Technical Round 3 45-60 min More coding, or design for senior levels
Hiring Manager 45-60 min Team fit, past work, defending trade-offs
HR / Values Round 30-45 min Motivation, ByteStyles, location and logistics

Every round is an elimination gate. Nothing is scheduled until the previous round comes back positive, so a four-round loop can run four to eight weeks with gaps in between. Budget for that and keep your preparation warm rather than peaking once.

System design appears from roughly 2-2 upward and is often framed as a deep dive into something you have actually built rather than an open prompt. Below that level, expect the design slot to be replaced by another coding round.


What TikTok Actually Tests

Derived from 348 reported TikTok-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 34 10%
Medium 243 70%
Hard 71 20%

Hard problems are a real but minority share. Medium fluency wins most rounds; Hard shows up late in the loop.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Dynamic Programming 54 16%
2 Sliding Window & Two Pointers 43 12%
3 Arrays & Hashing 39 11%
4 Trees 33 9%
5 Graphs 32 9%
6 Binary Search 23 7%
7 Heap / Priority Queue 20 6%
8 Stack & Monotonic Stack 18 5%
9 Tries & String Search 18 5%
10 Design (Coding) 15 4%

TikTok Signature Problems

These rank high on TikTok’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Number of Distinct Islands Hash Function + Union-Find Medium 12 of 142 Solve →
2 Minimum Swaps to Group All 1’s Together Sliding Window Medium 3 of 142 LeetCode →
3 Subarray With Elements Greater Than Varying Threshold Monotonic Stack + Union-Find Hard 2 of 142 LeetCode →
4 Maximum Swap Greedy Medium 8 of 142 Solve →
5 Maximum Value at a Given Index in a Bounded Array Binary Search + Greedy Medium 5 of 142 LeetCode →
6 Longest Happy String Heap + Greedy Medium 7 of 142 LeetCode →
7 Basic Calculator III Stack Hard 12 of 142 LeetCode →
8 Lexicographically Smallest Generated String String Matching + Greedy Hard 5 of 142 LeetCode →
9 Count the Hidden Sequences Prefix Sum Medium 6 of 142 LeetCode →
10 Construct Binary Tree from Preorder and Inorder Traversal Divide and Conquer + Binary Tree Medium 9 of 142 LeetCode →
11 Most Popular Video Creator Heap Medium 2 of 142 LeetCode →
12 Length of the Longest Alphabetical Continuous Substring String Medium 3 of 142 LeetCode →
13 Count Complete Subarrays in an Array Sliding Window Medium 4 of 142 LeetCode →
14 Closest Prime Numbers in Range Prime Number Sieve + Primality Test Medium 6 of 142 LeetCode →

If you are short on time, these carry more TikTok-specific signal per hour than the universal top-100 lists.


Reported in the Last Six Months

The recency-filtered slice of TikTok’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 LRU Cache Doubly Linked List + Design Medium Solve →
2 Number of Islands Union-Find + BFS Medium Solve →
3 All O`one Data Structure Doubly Linked List + Design Hard LeetCode →
4 Cheapest Flights Within K Stops Shortest Path + Graph Medium Solve →
5 Course Schedule DAG + Topological Sort Medium Solve →
6 Find First and Last Position of Element in Sorted Array Binary Search Medium Solve →
7 Find Median from Data Stream Data Stream + Design Hard Solve →
8 Gas Station Greedy Medium Solve →
9 Longest Mountain in Array Two Pointers + DP Medium LeetCode →
10 Longest Substring with At Most K Distinct Characters Sliding Window Medium Solve →
11 Merge Intervals Quicksort Medium Solve →
12 Number of Distinct Islands Hash Function + Union-Find Medium Solve →
13 Path Sum III Binary Tree + DFS Medium Solve →
14 Possible Bipartition Graph Coloring + Bipartite Graph Medium Solve →
15 Search in Rotated Sorted Array Binary Search Medium Solve →

System Design (HLD) Problems Asked at TikTok

# Problem Difficulty Link
1 Twitter Feed (For You Ranking) Intermediate Read →
2 Video Streaming and Delivery Advanced Read →
3 Trending Topics and Hashtags Intermediate Read →
4 Short Video Upload and Sharing Intermediate Read →
5 Video and Image Processing Pipeline Advanced Read →
6 Ad Click Aggregation Advanced Read →
7 Notification System Intermediate Read →
8 Message Queue Advanced Read →
9 Leaderboard Intermediate Read →
10 E-commerce Platform (TikTok Shop) Advanced Read →

DSA Problems Asked at TikTok

86 problems across 12 pattern groups. Each group is allocated in proportion to its real share of TikTok’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 12 on the list.

# Problem Pattern Difficulty Link
1 Number of Islands Union-Find + BFS Medium Solve →
2 Number of Distinct Islands Hash Function + Union-Find Medium Solve →
3 Course Schedule II Topological Sort + Graph Medium Solve →
4 Course Schedule DAG + Topological Sort Medium Solve →
5 Longest Consecutive Sequence Union-Find Medium Solve →
6 Subarray With Elements Greater Than Varying Threshold Monotonic Stack + Union-Find Hard LeetCode →
7 Making A Large Island Union-Find + BFS Hard Solve →
8 Longest Increasing Path in a Matrix DAG + Memoization Hard Solve →
9 Word Ladder Bidirectional Search + BFS Hard Solve →
10 Max Area of Island Union-Find + BFS Medium Solve →
11 Possible Bipartition Graph Coloring + Bipartite Graph Medium Solve →
12 Alien Dictionary DAG + Topological Sort Hard Solve →

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 12 on the list.

# Problem Pattern Difficulty Link
13 Longest Increasing Subsequence LIS + Binary Search Medium Solve →
14 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
15 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
16 House Robber DP Medium Solve →
17 Best Time to Buy and Sell Stock DP Easy Solve →
18 Valid Parenthesis String Bracket Sequences + Stack Medium Solve →
19 Generate Parentheses Bracket Sequences + Backtracking Medium Solve →
20 Edit Distance DP Medium Solve →
21 Minimum Cost Good Caption DP Hard LeetCode →
22 Minimum Operations to Make Character Frequencies Equal DP Hard LeetCode →
23 Climbing Stairs Memoization + DP Easy Solve →
24 Jump Game Greedy + DP Medium Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 12 on the list.

# Problem Pattern Difficulty Link
25 Spiral Matrix Simulation + Matrix Medium Solve →
26 Subarray Sum Equals K Prefix Sum Medium Solve →
27 Two Sum Hash Table + Array Easy Solve →
28 Count the Hidden Sequences Prefix Sum Medium LeetCode →
29 Subarray Sums Divisible by K Prefix Sum Medium LeetCode →
30 Bus Routes BFS Hard LeetCode →
31 Find the Score of All Prefixes of an Array Prefix Sum Medium LeetCode →
32 Incremental Memory Leak Simulation + Math Medium LeetCode →
33 Pacific Atlantic Water Flow BFS + DFS Medium Solve →
34 Rotting Oranges BFS Medium Solve →
35 Shortest Bridge BFS + DFS Medium Solve →
36 Shortest Path in a Grid with Obstacles Elimination BFS Hard Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 9 on the list.

# Problem Pattern Difficulty Link
37 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
38 Minimum Window Substring Sliding Window Hard Solve →
39 3Sum Two Pointers Medium Solve →
40 Minimum Swaps to Group All 1’s Together Sliding Window Medium LeetCode →
41 Sort Colors Bubble Sort + Quicksort Medium Solve →
42 Reorder List Linked List + Stack Medium Solve →
43 Container With Most Water Greedy + Two Pointers Medium Solve →
44 Count Complete Subarrays in an Array Sliding Window Medium LeetCode →
45 Minimum Moves to Pick K Ones Sliding Window + Prefix Sum Hard LeetCode →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 8 on the list.

# Problem Pattern Difficulty Link
46 Decode String Stack Medium Solve →
47 Basic Calculator III Stack Hard LeetCode →
48 Valid Parentheses Bracket Sequences + Stack Easy Solve →
49 Basic Calculator II Stack Medium Solve →
50 Daily Temperatures Monotonic Stack Medium Solve →
51 Basic Calculator Stack Hard Solve →
52 Simplify Path Stack Medium Solve →
53 Remove Duplicate Letters Monotonic Stack + Greedy Medium Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 7 on the list.

# Problem Pattern Difficulty Link
54 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →
55 Design HashMap Hash Function + Linked List Easy Solve →
56 Word Search II Trie + Backtracking Hard LeetCode →
57 Lexicographically Smallest Generated String String Matching + Greedy Hard LeetCode →
58 Word Break II Memoization + Trie Hard LeetCode →
59 Design Add and Search Words Data Structure Trie + Design Medium Solve →
60 Word Break Brute-Force Search + Memoization Medium Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 7 on the list.

# Problem Pattern Difficulty Link
61 Meeting Rooms II Prefix Sum + Heap Medium Solve →
62 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →
63 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →
64 Longest Happy String Heap + Greedy Medium LeetCode →
65 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →
66 Meeting Rooms III Heap Hard LeetCode →
67 Most Popular Video Creator Heap Medium LeetCode →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 5 on the list.

# Problem Pattern Difficulty Link
68 Search in Rotated Sorted Array Binary Search Medium Solve →
69 Maximum Value at a Given Index in a Bounded Array Binary Search + Greedy Medium LeetCode →
70 Sqrt(x) Newton’s Method + Binary Search Easy Solve →
71 Find First and Last Position of Element in Sorted Array Binary Search Medium Solve →
72 Find Peak Element Binary Search Medium Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 4 on the list.

# Problem Pattern Difficulty Link
73 Binary Tree Maximum Path Sum DP on Trees + Binary Tree Hard Solve →
74 Construct Binary Tree from Preorder and Inorder Traversal Divide and Conquer + Binary Tree Medium LeetCode →
75 Serialize and Deserialize Binary Tree Binary Tree + Design Hard Solve →
76 Binary Tree Right Side View Binary Tree + BFS Medium Solve →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 4 on the list.

# Problem Pattern Difficulty Link
77 LRU Cache Doubly Linked List + Design Medium Solve →
78 Snapshot Array Persistent Data Structure + Design Medium Solve →
79 Insert Delete GetRandom O(1) Randomized + Design Medium LeetCode →
80 Find Median from Data Stream Data Stream + Design Hard Solve →

Backtracking

Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 3 on the list.

# Problem Pattern Difficulty Link
81 Word Search Backtracking + DFS Medium Solve →
82 N-Queens Algorithm X + Backtracking Hard Solve →
83 Combination Sum Backtracking Medium Solve →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 3 on the list.

# Problem Pattern Difficulty Link
84 Text Justification Simulation + String Hard Solve →
85 Add Strings Simulation + Math Easy Solve →
86 Length of the Longest Alphabetical Continuous Substring String Medium LeetCode →

TikTok’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Graphs Very High 12 (13%) Number of Islands, Number of Distinct Islands, Course Schedule II
2 Dynamic Programming High 12 (13%) Longest Increasing Subsequence, Trapping Rain Water, Coin Change
3 Arrays & Hashing High 12 (13%) Spiral Matrix, Subarray Sum Equals K, Two Sum
4 Sliding Window & Two Pointers Medium-High 9 (10%) Longest Substring Without Repeating Characters, Minimum Window Substring, 3Sum
5 Stack & Monotonic Stack Medium-High 8 (9%) Decode String, Basic Calculator III, Valid Parentheses
6 Tries & String Search Medium-High 7 (8%) Longest Palindromic Substring, Design HashMap, Word Search II
7 Heap / Priority Queue Medium 7 (8%) Meeting Rooms II, Top K Frequent Elements, Merge k Sorted Lists
8 Binary Search Medium 5 (6%) Search in Rotated Sorted Array, Maximum Value at a Given Index in a Bounded Array, Sqrt(x)
9 Trees Medium 4 (4%) Binary Tree Maximum Path Sum, Construct Binary Tree from Preorder and Inorder Traversal, Serialize and Deserialize Binary Tree
10 Design (Coding) Medium 4 (4%) LRU Cache, Snapshot Array, Insert Delete GetRandom O(1)

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Graphs, Dynamic Programming, Arrays & Hashing covers the bulk of what TikTok actually asks. The rest is insurance for the one round that goes somewhere unexpected.


Recommendation and Feed Design: What the Round Expects

The design prompt at TikTok almost always lands on ranking, delivery, or ingestion of short video. These are the layers worth naming explicitly, with the concern each one is graded on.

Layer What it does What interviewers probe
Ingestion Upload, chunking, transcode to multiple bitrates Resumable upload, idempotency, how a failed transcode is retried
Candidate generation Pull a few thousand plausible videos per request Why you cannot score the whole catalogue; recall versus precision
Ranking Score candidates with a model on fresh features Feature freshness, online versus offline features, latency budget
Re-ranking Diversity, dedupe, freshness, creator spread Why pure score ordering produces a bad feed
Delivery CDN, prefetch the next few videos Cold start for new creators, cache hit rate, egress cost
Feedback Watch time, skips, likes back into training Exactly-once versus at-least-once logging, and why it matters here

Two follow-ups come up often enough to prepare directly: how a brand new video gets its first impressions when the model has no signal for it, and how you keep the feed responsive when the ranking model is slow or unavailable. A graceful fallback to a cached or popularity-ranked feed is a better answer than claiming the model never fails.


Behavioural and HR Round Questions

# Question
1 Walk me through the hardest technical problem you have solved end to end.
2 Tell me about a time you had to ship fast with an incomplete design.
3 Tell me about a time you disagreed with a design decision on your team.
4 Tell me about a time you worked with people across several timezones.
5 What would you change about a product you use daily, and how would you build it?
6 Tell me about a time you were given feedback you disagreed with.
7 Why TikTok, and why this team rather than the other offers you are considering?
8 How do you keep moving when requirements change mid-sprint?

The behavioural weighting is light compared with Amazon or Microsoft, but the HR round is not a formality. It covers motivation, the ByteStyles values, and practical matters like location and work authorisation. Have a clear, specific answer for why this team.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Graphs (part 1) Number of Islands, Number of Distinct Islands, Course Schedule II
2 Graphs (part 2) Course Schedule, Longest Consecutive Sequence, Subarray With Elements Greater Than Varying Threshold
3 Dynamic Programming (part 1) Longest Increasing Subsequence, Trapping Rain Water, Coin Change
4 Dynamic Programming (part 2) House Robber, Best Time to Buy and Sell Stock, Valid Parenthesis String
5 Arrays & Hashing (part 1) Spiral Matrix, Subarray Sum Equals K, Two Sum
6 Arrays & Hashing (part 2) Count the Hidden Sequences, Subarray Sums Divisible by K, Bus Routes
7 Sliding Window & Two Pointers Longest Substring Without Repeating Characters, Minimum Window Substring, 3Sum
8 Stack & Monotonic Stack Decode String, Basic Calculator III, Valid Parentheses
9 Tries & String Search Longest Palindromic Substring, Design HashMap, Word Search II
10 Heap / Priority Queue Meeting Rooms II, Top K Frequent Elements, Merge k Sorted Lists
11 Binary Search Search in Rotated Sorted Array, Maximum Value at a Given Index in a Bounded Array, Sqrt(x)
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for TikTok Interviews

  1. Treat the algorithm rounds as the whole interview. TikTok weights coding more heavily than most US big tech loops. Reaching the optimal solution inside the time box matters more here than an elegant partial answer.
  2. Prepare for 2-3 problems in one 45-minute round. That is a faster cadence than Google or Meta. Practice with a timer and no hints so the pace stops being a surprise.
  3. Expect a fundamentals segment before the coding problem. Processes versus threads, how a hash map resizes, index design, HTTP and TCP basics, garbage collection. Short answers, asked rapid-fire.
  4. Be ready to defend your own system. The design slot often becomes a deep dive into a project on your CV. Know the QPS, the data volume, the failure modes, and why you did not take the other option.
  5. For feed and recommendation prompts, separate candidate generation from ranking. Retrieval, filtering, ranking, re-ranking for diversity, then feedback logging. Naming that pipeline shape is most of the answer.
  6. Plan for cross-timezone scheduling. Interviewers are frequently in Singapore or China. Ask the recruiter upfront for the slot window so you are not solving graph problems at 06:00 unprepared.
  7. Assume nothing carries over between rounds. Each round is scored independently and gates the next, so there is no later round to recover a weak one in.

Other Company Prep


Round structure, durations, and level mapping are based on commonly reported candidate experiences rather than published TikTok documentation. The loop varies by org, level, and region, and TikTok reorganises its hiring process more often than most. Confirm the shape with your recruiter.