TikTok
ByteDance's process on TikTok's teams: a CodeSignal assessment for interns and new graduates, rounds scheduled one at a time, oral fundamentals for infra and SRE roles, and a hiring manager who asks about pace.
Typical loop
- 1CodeSignal assessment for interns and new graduates
- 2Phone screen: resume deep dive, then coding with your own test cases
- 3Second technical round: coding or system design
- 4USDS and infra loops add a Linux and networking round
- 5Hiring-manager round, then team match
Questions
Callback's practice questions and the LeetCode questions TikTok has been asking, filtered together.
Practice questions
Behavioral · The most common behavioral prompt, told in STAR: a disagreement where you changed the outcome, or changed your mind.
System Design · Fan-out, viral-pin aggregation under skew, and deciding not to send.
Algorithms & Data Structures · Cycle detection dressed up as a scheduling question.
Algorithms & Data Structures · Flood fill from every unvisited land cell — and know when DFS, BFS or union-find fits.
Algorithms & Data Structures · Two heaps — a max-heap for the lower half, a min-heap for the upper — rebalanced on every add.
Algorithms & Data Structures · One pass with a stack of signed terms; the trap is integer division truncating toward zero.
Algorithms & Data Structures · Build the trie first and say why: it prunes the DFS the moment a prefix does not exist.
Algorithms & Data Structures · Sort, then sweep — the pattern behind a dozen calendar problems.
Algorithms & Data Structures · Hash map plus doubly linked list, all operations O(1).
Algorithms & Data Structures · A second stack holds the minimum at each depth, so getMin is just its top.
Frontend · Store results by index, count down, resolve an empty input at once, reject on the first failure.
Algorithms & Data Structures · Binary-search the root in [0, max(1, x)] for a fixed number of rounds — an epsilon loop never ends for large x.
Design a Distributed Key-Value Store
System Design · Non-functional requirements first, then one real decision per layer — and the large-value variant, where the lock must never cover the disk write.
The Project You Are Most Proud Of
Behavioral · Your flagship story: the goal, your role, the hardest technical problem, and a measurable result.
Your Hardest Situation at Work
Behavioral · A deadline or an incident where you had to cut scope and manage risk.
Behavioral · Named tools, the tasks you use them for, a rough share of your coding, and how you verify the output.
Implement Function.prototype.bind
Frontend · A closure over thisArg and the leading arguments; the original runs later, with the call's own arguments appended.
Frontend · Merge per user with a Map re-inserted on every session so order follows the last one, then filter the merged rows.
Algorithms & Data Structures · Kahn's algorithm with a min-heap in place of the queue: in-degrees, a frontier of ready nodes, and an empty result when a node never becomes ready.
Design a Personalized Recommendation System
System Design · Logging to feature store to candidate generation to ranking to re-ranking, with cold start, evaluation and an A/B plan; the full pipeline for a streaming home feed.
More Work Than You Could Deliver
Behavioral · Explicit prioritisation criteria, the conversation with the people whose work slipped, and what you cut on purpose.
Handling Ambiguous Requirements
Behavioral · Turning a vague or shifting ask into a decision: the questions you asked, the assumptions you wrote down, and how you kept moving.
Algorithms & Data Structures · Per-seller priority with FIFO ties, sellers taking turns in activation order, and VIP sellers taking up to two tasks per turn; the turn state has to survive between calls.
Algorithms & Data Structures · addTask, removeTask and a destructive popTask(num) in timestamp order: a heap with lazy deletion, and a version per task so stale heap entries are recognised.
Algorithms & Data Structures · The LRU follow-up: every entry carries a time-to-live, an expired entry is a miss, and expired entries must not take up capacity when something has to be evicted.
Subarray With the Largest Min Plus Max
Algorithms & Data Structures · It looks like a sliding-window problem and is not one: the best subarray of length two or more is always an adjacent pair.
More Than a Third in a Sorted Array
Algorithms & Data Structures · In a sorted array a value that fills more than a third must cover the index at n/3 or at 2n/3, so two probes and four binary searches replace the scan.
Algorithms & Data Structures · Inside backticks, snake_case identifiers become camelCase and UPPER_CASE constants stay; everything else, including every space, is copied through.
Algorithms & Data Structures · Count pairs of numbers that are digit rotations of each other: give every number a canonical rotation and count equal keys instead of comparing pairs.
Count Alternating-Parity Subarrays
Algorithms & Data Structures · Count the subarrays in which neighbours always differ in parity: the number ending at each index is the length of the current alternating streak.
Algorithms & Data Structures · Simulate alloc and erase over a bit array where blocks must start on an 8-cell boundary; the care is in ids, bounds and erasing something twice.
Reverse Words, Keeping the Spacing
Algorithms & Data Structures · Reverse the order of the words while every run of spaces stays exactly where it was, including leading and trailing runs.
All Valid Expansions of Wildcard Parentheses
Algorithms & Data Structures · The follow-up to the wildcard validity check: enumerate every distinct balanced string the stars can produce, pruning on the running balance.
Algorithms & Data Structures · Given an n by n board, decide whether a player has completed a row, column or diagonal, or the board is full; then make it constant time per move.
Algorithms & Data Structures · A path whose value comparisons strictly alternate up and down. Unlike the longest increasing path, it can turn back on itself, so it needs backtracking with a visited set rather than memoisation.
Cheapest Grid Path With a Fuel Tank
Algorithms & Data Structures · Each cell has an entry cost, each step burns a unit of fuel, and marked cells refill the tank: Dijkstra over (row, column, fuel left), then the follow-up for a very large tank.
Count Path Sums in an N-ary Tree
Algorithms & Data Structures · Count downward paths that add up to a target when a node can have any number of children: a prefix-sum counter that is scoped to the current root-to-node path.
Binary Tree Maximum Path Sum, With the Path
Algorithms & Data Structures · The maximum path sum is the warm-up; the follow-up wants the nodes on the path, which means recording which arm each node extends and stitching two arms together at the best bend.
Build a Comment Tree From Flat Records
Frontend · Turn a flat list of comments with parent ids into nested roots with children, in two passes with a map, without depending on input order or mutating the input.
Algorithms & Data Structures · Number of Islands where the top edge touches the bottom and the left edge touches the right: wrap the neighbour arithmetic, then discuss union-find and cell flips.
Algorithms & Data Structures · Not the usual reversal inside each group: the groups of k nodes change places while each keeps its internal order, done by prepending each group to the result.
Design a Content Moderation System
System Design · Uploads flow through cheap filters, per-modality models and a human review queue; decisions are auditable, and past content can be replayed when the rules change.
Design a Payment System With Holds and Settlement
System Design · A payment-intent state machine, a real-time hold followed by batch settlement, idempotency keys so retries never charge twice, and a ledger that reconciles after bank timeouts.
Design Ticket Booking for a High-Demand On-Sale
System Design · Two separate problems: absorbing the burst at the moment sales open, and never selling the same seat twice, with holds that expire when payment does not arrive.
Design a Video-Keyword Association Review System
System Design · Batches of 50 videos against 1,000 keywords, edited over time: versioned submissions, resumable uploads, and recomputing only the pairs that a change touches.
Design an AI-Driven QA Pipeline
System Design · From a requirements document to test cases, data, scripts, execution and a report, with role-specific agents that hand artifacts to one another, human checkpoints, and a CI environment that has no GPU.
Design Overload Protection With Load Shedding
System Design · Keep a service doing useful work when demand exceeds capacity: detect overload from queue time, reject early by priority, bound every queue, and stop retries from making it worse.
HTTP/1.1, HTTP/2, HTTP/3 and gRPC
System Design · HTTP/2 multiplexes streams on one TCP connection, HTTP/3 moves to QUIC over UDP to remove transport head-of-line blocking, and gRPC is typed RPC over HTTP/2.
A Request's Path Into a Kubernetes Cluster
System Design · DNS, load balancer, ingress, Service virtual IP, pod: with what a node and a pod are, ClusterIP versus NodePort, DNS caching, and where to look when the answer is a 5xx.
System Design · Partitions give order, consumer groups give scale, and committing offsets before or after processing decides between at-most-once and at-least-once; exactly-once needs idempotence or transactions.
The TLS Handshake and HTTPS Inspection
System Design · The handshake authenticates the server by certificate and derives session keys by key exchange; inspecting HTTPS means terminating TLS at something the client has been told to trust.
System Design · Snapshots and an append-only file for durability, replicas with Sentinel for failover, and Cluster's hash slots for sharding, around a single-threaded command loop.
System Design · From the filesystem that is full, to the directory, to the file, to the process, including the case where the space is held by a deleted file that is still open.
System Design · Scope the problem with metrics, find the slow hop with traces, then test one hypothesis per layer: saturation, a dependency, the database, or a recent change.
Frontend · A reusable comment component: replies nested to any depth, an inline reply form, a hide/show toggle with a count, and a flat list in state with the tree derived from it.
Walk Me Through a Project on Your Resume
Behavioral · Fifteen to thirty minutes of drilling on one project: the decisions, the alternatives you rejected, the numbers, and what you would do differently.
What Is Your Biggest Weakness?
Behavioral · A real weakness with a real cost, what you changed, and evidence that the change held; not a strength in disguise.
Why This Team, and Why Are You Leaving?
Behavioral · Motivation that is specific to the team's product and problems, a reason for moving that is not a complaint, and a direction for the next few years.
Can You Work in a High-Intensity Environment?
Behavioral · A direct culture question: evidence that you have delivered under sustained pressure, how you prioritise and protect quality, and the boundaries you keep.
Tell Me About a Time You Failed
Behavioral · A failure that was yours, told without excuses: the decision, the impact, the recovery, and the change in how you work.
Behavioral · The director's version of the deep dive: twenty minutes on outcome and scope, where the answer starts with users and the business and reaches the technology only if asked.
Asked on LeetCode
362 questions · all time
- LRU CachemediumHash TableLinked ListDesignDoubly-Linked Listfrequency 100.0
- Number of IslandsmediumArrayDepth-First SearchBreadth-First SearchUnion-Find+1frequency 97.3
- Longest Increasing SubsequencemediumArrayBinary SearchDynamic ProgrammingLongest Increasing Subsequencefrequency 89.7
- Longest Substring Without Repeating CharactersmediumHash TableStringSliding Windowfrequency 87.2
- Number of Distinct IslandsmediumArrayHash TableDepth-First SearchBreadth-First Search+4frequency 86.6
- Course Schedule IImediumDepth-First SearchBreadth-First SearchGraph TheoryTopological Sortfrequency 85.9
- Meeting Rooms IImediumArrayTwo PointersGreedySorting+2frequency 83.8
- Merge IntervalsmediumArraySortingQuicksortfrequency 83.0
- Trapping Rain WaterhardArrayTwo PointersDynamic ProgrammingStack+1frequency 83.0
- Course SchedulemediumDepth-First SearchBreadth-First SearchGraph TheoryTopological Sort+1frequency 82.3
- Text JustificationhardArrayStringSimulationfrequency 79.7
- Decode StringmediumStringStackRecursionfrequency 75.8
- Longest Palindromic SubstringmediumTwo PointersStringDynamic ProgrammingManacherfrequency 74.7
- Minimum Window SubstringhardHash TableStringSliding Windowfrequency 74.7
- Search in Rotated Sorted ArraymediumArrayBinary Searchfrequency 74.7
- Word SearchmediumArrayStringBacktrackingDepth-First Search+1frequency 74.7
- N-QueenshardArrayBacktrackingAlgorithm Xfrequency 73.6
- 3SummediumArrayTwo PointersSortingfrequency 72.4
- Coin ChangemediumArrayDynamic ProgrammingBreadth-First SearchKnapsack Problem+1frequency 71.1
- Minimum Swaps to Group All 1's TogethermediumArraySliding Windowfrequency 71.1
- Spiral MatrixmediumArrayMatrixSimulationfrequency 71.1
- Subarray Sum Equals KmediumArrayHash TablePrefix Sumfrequency 71.1
- Longest Consecutive SequencemediumArrayHash TableUnion-Findfrequency 69.8
- Subarray With Elements Greater Than Varying ThresholdhardArrayStackUnion-FindMonotonic Stackfrequency 69.8
- Top K Frequent ElementsmediumArrayHash TableDivide and ConquerSorting+4frequency 69.8
- Making A Large IslandhardArrayDepth-First SearchBreadth-First SearchUnion-Find+1frequency 68.3
- Maximum SwapmediumMathGreedyfrequency 68.3
- Merge k Sorted ListshardLinked ListDivide and ConquerHeap (Priority Queue)Merge Sort+1frequency 68.3
- Basic Calculator IIIhardMathStringStackRecursionfrequency 66.8
- House RobbermediumArrayDynamic Programmingfrequency 66.8
- Longest Happy StringmediumStringGreedyHeap (Priority Queue)frequency 66.8
- Maximum Value at a Given Index in a Bounded ArraymediumMathBinary SearchGreedyfrequency 66.8
- Snapshot ArraymediumArrayHash TableBinary SearchDesign+1frequency 66.8
- Sqrt(x)easyMathBinary SearchNewton's Methodfrequency 66.8
- Valid ParentheseseasyStringStackBracket Sequencesfrequency 66.8
- Basic Calculator IImediumMathStringStackfrequency 65.2
- Best Time to Buy and Sell StockeasyArrayDynamic Programmingfrequency 65.2
- Two SumeasyArrayHash Tablefrequency 65.2
- Insert Delete GetRandom O(1)mediumArrayHash TableMathDesign+1frequency 63.4
- Kth Largest Element in an ArraymediumArrayDivide and ConquerSortingHeap (Priority Queue)+1frequency 63.4
- Longest Increasing Path in a MatrixhardArrayDynamic ProgrammingDepth-First SearchBreadth-First Search+5frequency 63.4
- Valid Parenthesis StringmediumStringDynamic ProgrammingStackGreedy+1frequency 63.4
- Word LadderhardHash TableStringBreadth-First SearchBidirectional Searchfrequency 63.4
- Add StringseasyMathStringSimulationfrequency 61.4
- Daily TemperaturesmediumArrayStackMonotonic Stackfrequency 61.4
- Design HashMapeasyArrayHash TableLinked ListDesign+1frequency 61.4
- Find Median from Data StreamhardTwo PointersDesignSortingHeap (Priority Queue)+1frequency 61.4
- Generate ParenthesesmediumStringDynamic ProgrammingBacktrackingBracket Sequencesfrequency 61.4
- Meeting Rooms IIIhardArrayHash TableSortingHeap (Priority Queue)+1frequency 61.4
- Sort ColorsmediumArrayTwo PointersSortingQuicksort+1frequency 61.4