14 practice questions for TikTok technical interviews
codingHardVerified
[CodeSignal] Synchronized Pipeline Delays
Category: Binary tree coding problemA hierarchical data pipeline consists of n broadcast stages, numbered 1 to n, arranged in a perfect binary tree rooted at stage 0. Each stage...Input: Binary tree Output: Computed result
codingMediumVerified
Region Grid Coloring
Category: Grid/matrix coding problemYou are given an M x N grid of security zones. Each cell contains one of the following values: - 1 -- the zone is cleared - 0 -- the zone...Input: 2D grid Output: Computed result
codingHardVerified
Dual Extremes Queue
Category: Queue-based coding problemDesign a StreamBuffer class that buffers a stream of integer latency samples in FIFO order and supports O(1) access to both the minimum and maximum...Input: Integer(s) Output: Integer
codingMediumVerified
Circular Signal Window
Category: Array coding problemYou are given a circular array signal of 0s and 1s representing antenna readings logged in sequence, where 1 means good signal and 0 means...Input: Array Output: Integer
codingMediumVerified
Pattern First Occurrence
Category: String coding problemYou are given a search pattern and a log string, both consisting of uppercase letters and the wildcard character *. The * wildcard matches...Input: String Output: Computed result
codingMediumVerified
[CodeSignal] Minimum Score Suppressor
Category: Algorithm coding problemYou are given a list of ad budgets (integers) and an integer k representing the number of throttle operations available. Each operation selects...Input: List Output: Integer
codingMediumVerified
[CodeSignal] Optimal Voucher Allocation
Category: Algorithm coding problemYou are given couponsCount discount coupons and a list of monthly service fees. Each coupon halves one service fee using integer floor division....Input: List Output: Integer
codingMediumVerified
Remove Consecutive for Balance
Category: Array coding problemYou are given a list of track lengths tracks and a positive integer k. Remove exactly k consecutive tracks from the list so that the sum of...Input: Array Output: Computed result
codingHardVerified
Spread Avoidance Escape
Category: Grid/matrix coding problemYou are navigating a facility grid to escape from spreading contamination. The grid contains: - 'S' - your starting position - 'C' - the...Input: 2D grid Output: Integer
codingMediumVerified
Path Prefix Router
Category: String coding problemDesign a CDN route manager class CdnRouter that maps URL paths to origin servers using longest-prefix matching. Implement the following methods: -...Input: String Output: Computed result
codingEasyVerified
Character String Adder
Category: Array coding problemA string-based calculator receives two numbers as arrays of digit characters. Each array represents a signed integer -- digits only, with an optional...Input: Array Output: Computed result
codingHardVerified
Tiered Order Pricing
Category: String coding problemA warehouse fulfillment system batches orders to minimize shipping costs. Orders for the same SKU that are placed within 5 minutes (300,000 ms) of...Input: String Output: Integer
codingEasyVerified
HTML Tag Renderer
Category: Tree coding problemA document template engine serializes a tree of nodes into a markup string. You are given the tree as two parallel arrays: - tags: the tag name for...Input: Array Output: Computed result
codingMediumVerified
Bounded Repeat Substring
Category: String coding problemA sensor data stream is represented as a string of characters. A contiguous segment of the stream is considered valid if it contains no three...Input: String Output: Computed result
No AI generated questions yet for TikTok.
Start practicing TikTok questions
Sign up for free to access walkthroughs, AI-generated questions, and more.