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
Easy
Data Scientist Locked

How would you measure misinformation impact and recommendation bias?

This question evaluates a data scientist's analytics and experimentation competencies — including metric and diagnostic design, sampling and labeling ...

Analytics & Experimentation
4
0
64 people solved
Aug 30, 2025
TikTok logo
TikTok
Hard
Software Engineer Locked

Find longest substring with ≥k repeats

This question evaluates proficiency with string-processing techniques and character frequency analysis, focusing on algorithmic skills in the Coding &...

Coding & Algorithms
3
0
38 people solved
Jan 9, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Calculate transaction fees from CSV records

This question evaluates parsing and processing of structured transaction data, implementing multi-dimension fee computation rules (provider-, transact...

Coding & Algorithms
13
1
98 people solved
Jan 6, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Resolve user roles across account hierarchy

This question evaluates understanding of hierarchical data structures, role-based access control semantics, and set/map operations for computing effec...

Coding & Algorithms
3
0
32 people solved
Jan 6, 2026
TikTok logo
TikTok
Medium
Software Engineer

Solve three algorithm tasks

Solve the following algorithm tasks and explain your approach, time complexity, and space complexity for each: 1) Fully justify text: Given an array o...

Coding & Algorithms
2
0
51 people solved
Aug 13, 2025
TikTok logo
TikTok
Hard
Machine Learning Engineer

Implement attention and nucleus sampling; compare to top-k

Implement Multi‑Head Attention and Nucleus (Top‑p) Sampling Context You are building core components used in Transformer-based language models. Implem...

Machine Learning
7
0
66 people solved
Aug 11, 2025
TikTok logo
TikTok
Medium
Software EngineerIntern

Discuss goals, experience, conflicts, and logistics

Discuss goals, experience, conflicts, and logistics Behavioral & Leadership Screen — Software Engineer Internship Context You are interviewing for a s...

Behavioral & Leadership
5
0
44 people solved
Aug 9, 2025
TikTok logo
TikTok
Hard
Machine Learning Engineer

Design LLM-enhanced recommendation solutions

Design LLM-enhanced recommendation solutions System Design: Incorporating Large Language Models (LLMs) into a Large-Scale Recommendation System Contex...

ML System Design
5
0
70 people solved
Aug 8, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Find second-minimal word segmentation count

Find second-minimal word segmentation count Given a string s and a dictionary D of non-empty words, define a 'segmentation' as splitting s into a sequ...

Coding & Algorithms
4
0
32 people solved
Aug 7, 2025
TikTok logo
TikTok
Hard
Data Scientist

Design A/B Test for Cost-Per-Conversion Efficiency Analysis

Design A/B Test for Cost-Per-Conversion Efficiency Analysis Multi-Arm A/B Test: Comparing Cost-Per-Conversion Across Channels Scenario You need to com...

Analytics & Experimentation
154
2
323 people solved
Aug 4, 2025
TikTok logo
TikTok
Medium
Machine Learning Engineer

Determine if a string can be segmented

Given a string s and a list of strings wordDict, determine whether s can be segmented into a sequence of one or more dictionary words. - You may reuse...

Coding & Algorithms
3
0
50 people solved
Dec 15, 2025
TikTok logo
TikTok
Medium
Software Engineer

Reverse nodes in even-length linked-list groups

Problem Given the head of a singly linked list, you will traverse the list in contiguous groups of increasing size: the 1st group has size 1, the 2nd ...

Coding & Algorithms
5
0
73 people solved
Dec 11, 2025
TikTok logo
TikTok
Medium
Data Scientist

Evaluate Responses to Teammate's Missed Deadlines

Behavioral Judgment: Teammate Consistently Misses Deadlines You are completing a behavioral questionnaire that asks you to choose the most effective a...

Behavioral & Leadership
21
0
61 people solved
Jul 12, 2025
TikTok logo
TikTok
Easy
Data Scientist

Test Billboard Campaign Conversion Rate Exceeds 60%

Test Whether a Billboard Campaign Conversion Rate Exceeds 60% A billboard campaign sample contains N = 100 users, and 65 of them converted. You want t...

Statistics & Math
38
0
131 people solved
Jul 12, 2025
TikTok logo
TikTok
Medium
Software Engineer

Find kth smallest in sorted 2D matrix

You are given an n x m matrix of integers where each row and each column is sorted in non-decreasing order. You are also given an integer k such that ...

Coding & Algorithms
3
0
52 people solved
Dec 8, 2025
TikTok logo
TikTok
Medium
Data Scientist

Investigating Correlation Between Ad Visits and Reports

Scenario You are on the analytics team at a large social media platform. A positive correlation has been observed between the number of page visits to...

Analytics & Experimentation
6
0
62 people solved
Jun 22, 2025
TikTok logo
TikTok
Easy
Data Scientist Locked

How would you manage precision/recall for fraud detection?

This question evaluates a candidate's competency in applied machine learning for fraud detection, covering model performance measurement, thresholding...

Machine Learning
4
0
48 people solved
Oct 26, 2025
TikTok logo
TikTok
Medium
Data Scientist

Select max-discount product per category

You have a catalog of products. For each category, return exactly one product: the one with the largest absolute discount; if multiple products in the...

Data Manipulation (SQL/Python)
1
0
9 people solved
Oct 13, 2025
TikTok logo
TikTok
Medium
Data Scientist Locked

Design a creator posting-frequency experiment

This question evaluates experimental design and causal inference competencies for a Data Scientist, including precise metric definition, randomization...

Analytics & Experimentation
4
0
38 people solved
Oct 13, 2025
TikTok logo
TikTok
Hard
Data Scientist Locked

Prove conversion ads value via incrementality

This question evaluates a candidate's competency in causal inference and experimentation design for advertising measurement, covering metrics and attr...

Analytics & Experimentation
2
0
53 people solved
Oct 13, 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