TikTok Interview Questions

TikTok Coding & Algorithms Interview Questions

Practice 291 real TikTok interview questions for 2026 — TikTok interview questions drawn from actual interviews with detailed solutions to support focused interview preparation. This collection emphasizes coding and system-design skills first (Coding & Algorithms, System Design), then moves to analytics, experimentation, SQL/Python, machine learning, and behavioral topics. Expect live coding (arrays, strings, trees, DP), mid-level system-design rounds that probe scale and video-recommendation tradeoffs, product-analytics and A/B discussion, and role-specific takeaways for data and ML roles. Prep by practicing medium-to-hard coding problems, sketching scalable architectures, rehearsing STAR stories tied to impact, and building short SQL/Python notebooks that reproduce common TikTok metrics. For role-specific patterns: Software Engineer rounds repeatedly test string/DP/stack problems, nested-list parsing, tree and linked-list manipulations, and designing scalable testable APIs. Data Scientists focus on metric definition and decomposition, fraud and precision/recall tradeoffs, live-creator and Watch-Time SQL, recommendation-bias and misinformation analysis, streaming-median and path-sum style algorithmic tasks, and multimodal deployment constraints. Machine Learning Engineers see dynamic-K models, video-captioning and multimodal embedding design under compute limits, attention/KV-cache topics, and ML diagnostics. Product Managers get flow critiques, A/B test design, monetization and anti-cheat product cases.

291 Questions 1 Company03.01.2026
Showing 20 results
Role
TikTok logo
TikTok
Medium
Software Engineer

Maximize min+max of contiguous subarray

You are given an array of n positive integers nums. Find a contiguous subarray that contains at least two elements and maximizes the value: > (minimum...

Coding & Algorithms
6
0
51 people solved
Oct 11, 2025
TikTok logo
TikTok
Easy
Data Scientist

Write SQL for TikTok Live creator metrics

You are analyzing TikTok Live sessions and their engagement. Tables live_room Each row is a Live session (“room”) launched by a creator. | column | ty...

Data Manipulation (SQL/Python)
16
0
136 people solved
Oct 9, 2025
TikTok logo
TikTok
Easy
Software Engineer

Find start indices of anagram substrings

You are given two strings: - s: the text string - p: the pattern string Return a list of all starting indices i such that the substring s[i : i + len(...

Coding & Algorithms
3
0
44 people solved
Oct 7, 2025
TikTok logo
TikTok
Hard
Software Engineer

Compute maximum path sum in a binary tree

Question You are given the root of a binary tree where each node contains an integer value (which may be positive, zero, or negative). Return the maxi...

Coding & Algorithms
5
0
59 people solved
Oct 3, 2025
TikTok logo
TikTok
Hard
Software Engineer

Improve and measure service performance

Assessing and Improving a Service’s Performance Under High Load Context You are responsible for a user-facing, stateless HTTP microservice that handle...

System Design
3
0
59 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Software Engineer

Find top-k rated nodes via traversal

You are given a finite graph (directed or undirected) with n nodes and m edges. Each node u has an integer rating r[u]. Given a starting node s and an...

Coding & Algorithms
6
0
54 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Determine frog reachability across stones

You are given a sorted array of distinct integers stones representing stone positions in a river, where stones[0] = 0. A frog starts on stone 0; its f...

Coding & Algorithms
3
0
27 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Software Engineer

Implement binary tree in-order traversal

Given the root of a binary tree, return the in-order ordering of its node values. Implement both a recursive solution and an iterative solution using ...

Coding & Algorithms
5
0
40 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Software Engineer

Compute waits and find distance-k node pairs

Part 1 — Array next-higher wait: Given an integer array A where A[i] is the measurement for day i (0-indexed), return an array W of the same length su...

Coding & Algorithms
3
0
34 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Count subarrays summing to target

Question LeetCode 560. Subarray Sum Equals K – Given an integer array nums and an integer k, return the total number of continuous subarrays whose sum...

Coding & Algorithms
10
0
10 people solved
Aug 4, 2025
TikTok logo
TikTok
Easy
Data Scientist

Calculate Expected Draws for X > 0.8 in Uniform(0,1)

Calculate Expected Draws for X > 0.8 in Uniform(0,1) Scenario Quick probability check during a first-round screen to gauge statistical intuition. Ques...

Statistics & Math
7
0
57 people solved
Aug 4, 2025
TikTok logo
TikTok
Medium
Data Scientist

Calculate Conversion Rate from Ad Clicks to Page Visits

user_events | user_id | event_time | event_type | ad_id | |---------|----------------------|------------|-------| | 1 | 2023-01-01 10:...

Data Manipulation (SQL/Python)
0
0
7 people solved
Aug 4, 2025
TikTok logo
TikTok
Medium
Data Scientist

Select 10% Users Randomly from User Table

users +----+----------+-------------+ | id | username | signup_date | +----+----------+-------------+ | 1 | alice | 2023-01-02 | | 2 | bob ...

Data Manipulation (SQL/Python)
0
0
5 people solved
Aug 4, 2025
TikTok logo
TikTok
Medium
Data Scientist

Personalize Ad Delivery Using Machine Learning Techniques

Personalize Ad Delivery Using Machine Learning Techniques Personalized Delivery of Three Ad Categories Scenario You operate a consumer feed with a sin...

Machine Learning
2
0
32 people solved
Aug 4, 2025
TikTok logo
TikTok
Medium
Data Scientist

Diagnose Decline in User Engagement and Experience Quality

Diagnose Decline in User Engagement and Experience Quality Product Metrics Deep-Dive and Causal Inference (TikTok) Context You are a data scientist wo...

Analytics & Experimentation
2
0
41 people solved
Aug 4, 2025
TikTok logo
TikTok
Medium
Software Engineer

Count deletions making array fair

Question LeetCode 1664. Ways to Make a Fair Array – Given an integer array nums, count the indices whose removal results in the sum of elements at eve...

Coding & Algorithms
5
0
19 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Flatten object & Promise.all

Question Given a nested JavaScript object, write a function to flatten it so that nested keys are converted to a single-level path (e.g., {a:{b:1}} ->...

Coding & Algorithms
16
0
55 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Compute widest level span in a binary tree

Given a binary tree, define the width of a level as the number of positions between the leftmost and rightmost non-empty nodes at that depth when node...

Coding & Algorithms
2
0
38 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Compute city skyline silhouette

Compute city skyline silhouette Compute the outer silhouette of a 2D skyline. You are given n axis-aligned rectangular buildings; each building i is (...

Coding & Algorithms
4
0
30 people solved
Jul 27, 2025
TikTok logo
TikTok
Medium
Software Engineer

Solve top-K and string rotation match

Solve top-K and string rotation match 1) Given an unsorted array of integers and an integer k, return the k largest elements in descending order. Impl...

Coding & Algorithms
2
0
40 people solved
Jul 26, 2025

Frequently Asked Questions

How difficult are TikTok interview questions across roles and levels?
TikTok interview questions are generally medium-to-hard and scale with role and seniority. Entry-level software and data roles usually see medium LeetCode-style problems plus basic systems or SQL checks, while mid and senior candidates face harder algorithmic problems, system design conversations that focus on video delivery and recommendation tradeoffs, and deeper product-metric reasoning. Data scientist interviews combine SQL, statistics, and real-world metric design; machine learning roles probe attention, deployment, and model-scaling constraints. Timed online assessments and hiring-committee reviews raise the bar for correctness, clarity, and tradeoff justification, so expect pressure to code accurately and explain decisions cleanly.
What is the typical TikTok interview process and which roles see which question categories?
The typical process starts with a recruiter screen, usually followed by an online assessment for technical roles, then one or more live technical interviews, and a final hiring-committee review. Software engineers encounter coding and, for mid/senior levels, system design focusing on video infrastructure and global latency. Data scientists face SQL, product-metric design, experimentation, and fraud or trust-and-safety scenarios. Machine learning engineers see modelling, attention/FlashAttention concepts, and deployment constraints. Product managers get product cases, A/B test design, and privacy tradeoffs. Behavioral and leadership questions appear in all tracks to assess ownership and cross-functional collaboration.
How long should I prepare for a TikTok interview and how should I structure my timeline?
Most candidates benefit from a 6-to-8-week focused plan that balances algorithm practice, system and product study, and role-specific work. Start with foundational algorithms and timed coding practice in weeks one to three, add system design and architecture rehearsals in weeks three to five if you are applying for mid/senior engineering, and dedicate parallel time to role-specific skills: SQL and experimentation for data scientists, attention and deployment constraints for ML engineers, and product-case frameworks for PMs. In the final two weeks, emphasize mock interviews, clean-up of portfolio or take-home projects, and behavioral storytelling using concrete impact examples.
What are the key subtopics I should master for TikTok interviews by role?
For Data Scientist roles, focus on metric definition and decomposition, fraud detection tradeoffs of precision versus recall, SQL window functions and streaming/real-time analytics, and A/B test design and diagnostics. Software Engineers should master strings, dynamic programming, stacks, parsing nested structures, common tree and linked-list manipulations, and scalable system choices for video and recommendation services. Machine Learning Engineers must know attention mechanisms, memory/kv cache patterns, RoPE/positional encodings, multimodal embedding training under compute limits, and overfitting diagnostics. Product Managers should be fluent in product strategy, experiment design, retention mechanics, and privacy implications.
What standout tips and common pitfalls should I remember when preparing for TikTok interviews?
Prioritize clear problem restatement, concrete examples, and early test cases when coding; interviewers value incremental, correct solutions over clever but opaque shortcuts. Quantify product impact when discussing metrics and choose evaluation criteria that match business goals rather than technical purity. For ML roles, emphasize validation strategy and production constraints like latency and memory. Avoid common pitfalls: ignoring edge cases, skipping complexity analysis, overengineering systems without operational considerations, and treating behavioral answers as rehearsed scripts instead of specific, outcome-focused stories demonstrating ownership and collaboration.

Explore more TikTok interview questions

Jump straight to TikTok questions for a specific role or category.

By role
By category
In-depth guides
Across all companies