TikTok logo

TikTok Medium Interview Questions

8 medium-level practice questions for TikTok technical interviews

coding Medium Verified Question #1

1. 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 Medium Verified Question #2

2. 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 Question #3

3. 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 Question #4

4. [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 Question #5

5. [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 Question #6

6. 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 Medium Verified Question #7

7. 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 Medium Verified Question #8

8. 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