ByteDance
A strict one-round-at-a-time funnel: a resume deep dive opens every round, then LeetCode-medium coding with your own test cases, system design, and a hiring-manager round. Teams differ sharply in bar and format.
Typical loop
- 1Recruiter call, sometimes skipped
- 2Round one: project deep dive, then one or two coding problems
- 3Round two: more coding, or system design
- 4Round three: hiring manager, behavioral plus another problem
- 5Team match with HR
Questions
Callback's practice questions and the LeetCode questions ByteDance has been asking, filtered together.
Practice questions
System Design · Token bucket, sliding window, and where the counters live.
System Design · The classic: encoding, storage, and redirects at scale.
Behavioral · The most common behavioral prompt, told in STAR: a disagreement where you changed the outcome, or changed your mind.
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.
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 Job Scheduler
System Design · A job store as the source of truth, dispatchers that claim due runs with a unique key, leased workers, and a reaper — then the policies a template answer forgets.
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.
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 · 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.
Validated Add-Subtract Calculator
Algorithms & Data Structures · Evaluate digits joined by + and - only after proving the string is well formed: no stray characters, no leading zeros, no doubled operators, and everything inside 32 bits.
Order Validator With Rule Dependencies
Algorithms & Data Structures · Validation rules form a DAG: a rule is skipped when a prerequisite did not pass, a dependency that would close a cycle is refused, and removing a rule reconnects its prerequisites to its dependents.
Largest Number Below a Limit From Allowed Digits
Algorithms & Data Structures · Keep the limit's prefix as long as possible, step one digit down, then fill with the largest allowed digit; fall back to a shorter number, and mind leading zeros.
Algorithms & Data Structures · Each hour fished lowers a pond's next yield by one. The heap greedy is the first answer; the accepted one finds the water line all ponds are fished down to and sums arithmetic series.
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.
Earliest Block Removal That Balances the Array
Algorithms & Data Structures · Delete k consecutive elements so the even-indexed and odd-indexed sums of what remains are equal; an alternating prefix sum handles the parity flip of the shifted suffix.
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.
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.
House Segments After Demolitions
Algorithms & Data Structures · Houses on a number line form segments of consecutive positions; each demolition changes the segment count by +1, 0 or -1 depending only on the two neighbours.
Algorithms & Data Structures · For every concentric ring, collect the values clockwise from the ring's top-left corner, sort them, and write them back in the same order; single-row and single-column centres are the trap.
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.
Equalize Root-to-Leaf Sums in an N-ary Tree
Algorithms & Data Structures · Raise node values by one at a time until every root-to-leaf path has the same sum, using the fewest increments: lift each shortfall as high in the tree as it can go.
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.
Algorithms & Data Structures · Turn a map of arbitrary strings into one string and back. Any separator can appear in the data, so the format has to say where each field ends: length prefixes.
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.
Heaviest Set of Non-Adjacent Nodes
Algorithms & Data Structures · House Robber on an arbitrary small graph: with at most 20 nodes, a dynamic programme over subsets decides, for the lowest remaining node, take it and drop its neighbours or skip it.
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.
System Design · Fifty thousand listen events a second become a top-ten list per country that refreshes every ten minutes and is read from a small cached object.
Design Recent Like Counts and Trending Posts
System Design · Three reads over a 60-second window at a million likes a second: an exact count for one post from per-second buckets, and global and per-region top lists from a stream job.
System Design · Bids arrive over REST, are ordered per auction through a partitioned log, update a durable state machine, and are pushed to watchers over server-sent events.
Design a Synchronized Live Comment Overlay
System Design · Comments that fly across a video in step with playback: timeline-indexed storage for recorded video, fan-out over push connections for live, and sampling when a room is too busy to show everything.
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 a RAG-Based Agent System
System Design · An agent that retrieves, calls tools and answers: the ingestion and retrieval path, the tool loop with state and limits, tracing for failed tool calls, and how its quality is measured.
Prevent a Cache Stampede on a Hot Key
System Design · When a very popular cache entry expires, thousands of requests miss at once and all hit the database: let one caller rebuild, serve the old value meanwhile, and refresh before expiry.
System Design · TCP gives an ordered, reliable byte stream at the cost of setup and head-of-line blocking; UDP sends independent datagrams and leaves the rest to the application.
System Design · SYN, SYN-ACK, ACK: each side proves it can send and receive and the two exchange starting sequence numbers; closing takes four segments.
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.
System Design · Each process gets its own address space mapped page by page onto physical memory or disk, which is how programs can use more memory than the machine has.
REST, WebSocket or Server-Sent Events?
System Design · Request and response, a two-way persistent socket, or a one-way server stream over HTTP: pick by who needs to talk and how often, as for an agent that streams its answer.
System Design · During a network partition a distributed store must choose between answering with possibly stale data and refusing to answer; it is a statement about partitions, not a permanent pick of two from three.
Composite and Covering Indexes
SQL & Data · A composite index is sorted by its columns in order, so only a leftmost prefix can be searched; when it also contains every column the query needs, the table is never read.
Evaluating a Move From MySQL to MongoDB
SQL & Data · A migration is justified by the workload, access patterns, schema shape and scale, and by a measured result, not by a list of SQL-versus-NoSQL traits.
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.
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
107 questions · all time
- LRU CachemediumHash TableLinked ListDesignDoubly-Linked Listfrequency 100.0
- Remove Duplicate LettersmediumStringStackGreedyMonotonic Stackfrequency 85.1
- Smallest Subsequence of Distinct CharactersmediumStringStackGreedyMonotonic Stackfrequency 82.6
- First Day Where You Have Been in All the RoomsmediumArrayDynamic Programmingfrequency 79.9
- Number of IslandsmediumArrayDepth-First SearchBreadth-First SearchUnion-Find+1frequency 79.9
- Course SchedulemediumDepth-First SearchBreadth-First SearchGraph TheoryTopological Sort+1frequency 76.8
- Basic Calculator IImediumMathStringStackfrequency 69.0
- Combination SummediumArrayBacktrackingfrequency 69.0
- Maximal SquaremediumArrayDynamic ProgrammingMatrixfrequency 69.0
- Merge IntervalsmediumArraySortingQuicksortfrequency 69.0
- Shortest BridgemediumArrayDepth-First SearchBreadth-First SearchMatrixfrequency 69.0
- House RobbermediumArrayDynamic Programmingfrequency 63.8
- Regular Expression MatchinghardStringDynamic ProgrammingRecursionfrequency 63.8
- Top K Frequent ElementsmediumArrayHash TableDivide and ConquerSorting+4frequency 63.8
- Two SumeasyArrayHash Tablefrequency 63.8
- Word LadderhardHash TableStringBreadth-First SearchBidirectional Searchfrequency 63.8
- Accounts MergemediumArrayHash TableStringDepth-First Search+3frequency 57.1
- Add Two NumbersmediumLinked ListMathRecursionfrequency 57.1
- Basic CalculatorhardMathStringStackRecursionfrequency 57.1
- Best Time to Buy and Sell StockeasyArrayDynamic Programmingfrequency 57.1
- Decode StringmediumStringStackRecursionfrequency 57.1
- Design Memory AllocatormediumArrayHash TableDesignSimulationfrequency 57.1
- Longest Common SubsequencemediumStringDynamic ProgrammingLongest Common Subsequencefrequency 57.1
- Longest Increasing SubsequencemediumArrayBinary SearchDynamic ProgrammingLongest Increasing Subsequencefrequency 57.1
- Maximum SubarraymediumArrayDivide and ConquerDynamic Programmingfrequency 57.1
- Maximum Width of Binary TreemediumTreeDepth-First SearchBreadth-First SearchBinary Treefrequency 57.1
- Multiply StringsmediumMathStringSimulationfrequency 57.1
- Restore IP AddressesmediumStringBacktrackingfrequency 57.1
- Rotting OrangesmediumArrayBreadth-First SearchMatrixfrequency 57.1
- Search in Rotated Sorted ArraymediumArrayBinary Searchfrequency 57.1
- 3Sum ClosestmediumArrayTwo PointersSortingfrequency 47.8
- Binary Tree Right Side ViewmediumTreeDepth-First SearchBreadth-First SearchBinary Treefrequency 47.8
- Binary Tree Zigzag Level Order TraversalmediumTreeBreadth-First SearchBinary Treefrequency 47.8
- Climbing StairseasyMathDynamic ProgrammingMemoizationfrequency 47.8
- Clone GraphmediumHash TableDepth-First SearchBreadth-First SearchGraph Theoryfrequency 47.8
- Combination Sum IImediumArrayBacktrackingfrequency 47.8
- Delete Node in a BSTmediumTreeBinary Search TreeBinary Treefrequency 47.8
- Find Peak ElementmediumArrayBinary Searchfrequency 47.8
- Find the Length of the Longest Common PrefixmediumArrayHash TableStringTriefrequency 47.8
- Insert Delete GetRandom O(1)mediumArrayHash TableMathDesign+1frequency 47.8
- Jump GamemediumArrayDynamic ProgrammingGreedyfrequency 47.8
- Kth Largest Element in an ArraymediumArrayDivide and ConquerSortingHeap (Priority Queue)+1frequency 47.8
- Linked List Cycle IImediumHash TableLinked ListTwo PointersFloyd's Cycle Finding Algorithmfrequency 47.8
- Longest Palindromic SubstringmediumTwo PointersStringDynamic ProgrammingManacherfrequency 47.8
- Longest Repeating Character ReplacementmediumHash TableStringSliding Windowfrequency 47.8
- Merge k Sorted ListshardLinked ListDivide and ConquerHeap (Priority Queue)Merge Sort+1frequency 47.8
- Minimum Area RectanglemediumArrayHash TableMathGeometry+1frequency 47.8
- Minimum Swaps to Group All 1's Together IImediumArraySliding Windowfrequency 47.8
- Number of Good Leaf Nodes PairsmediumTreeDepth-First SearchBinary TreeDP on Treesfrequency 47.8
- Product of the Last K NumbersmediumArrayMathDesignData Stream+1frequency 47.8