TikTok SRE interviews focus on reliability engineering, incident management, capacity planning, monitoring, and balancing system stability with feature velocity.
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 Question#2
2. 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 Question#3
3. 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 Question#4
4. 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 Question#5
5. 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 Question#6
6. [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 Question#7
7. [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 Question#8
8. 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 Question#9
9. 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 Question#10
10. 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 Question#11
11. 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 Question#12
12. 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 Question#13
13. 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 Question#14
14. 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