TikTok logo

TikTok Interview Questions

14 practice questions for TikTok technical interviews

coding Hard Verified

[CodeSignal] Synchronized Pipeline Delays


Category: Binary tree coding problem
A 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
coding Medium Verified

Region Grid Coloring


Category: Grid/matrix coding problem
You 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
coding Hard Verified

Dual Extremes Queue


Category: Queue-based coding problem
Design 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
coding Medium Verified

Circular Signal Window


Category: Array coding problem
You 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
coding Medium Verified

Pattern First Occurrence


Category: String coding problem
You 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
coding Medium Verified

[CodeSignal] Minimum Score Suppressor


Category: Algorithm coding problem
You 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
coding Medium Verified

[CodeSignal] Optimal Voucher Allocation


Category: Algorithm coding problem
You 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
coding Medium Verified

Remove Consecutive for Balance


Category: Array coding problem
You 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
coding Hard Verified

Spread Avoidance Escape


Category: Grid/matrix coding problem
You are navigating a facility grid to escape from spreading contamination. The grid contains: - 'S' - your starting position - 'C' - the...
Input: 2D grid
Output: Integer
coding Medium Verified

Path Prefix Router


Category: String coding problem
Design 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
coding Easy Verified

Character String Adder


Category: Array coding problem
A 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
coding Hard Verified

Tiered Order Pricing


Category: String coding problem
A 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
coding Easy Verified

HTML Tag Renderer


Category: Tree coding problem
A 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
coding Medium Verified

Bounded Repeat Substring


Category: String coding problem
A 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.

Get Started Free