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.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Solve Topological Sort and Anagram Indices
1) Given a directed graph (n vertices, m edges), return a topological ordering if one exists. If the graph contains a cycle, detect it and explain how...
Explain portfolio, design language, and delivery
Explain portfolio, design language, and delivery Prompt: Portfolio Walkthrough, Design Language, and Landing Under Constraints Context You are intervi...
Evaluate Cohort Posting Patterns Using Metrics and Tests
Evaluate Cohort Posting Patterns Using Metrics and Tests Assessing Whether Cohorts Have the Same or Different Posting Patterns Context You have multip...
Explain Java ConcurrentHashMap and queues
An interviewer asks you conceptual questions about Java's concurrency primitives. Explain in detail: 1. How Java's ConcurrentHashMap is implemented in...
Design an experiment for exploratory recommendations
Experiment Design for Exploratory Recommendations You are launching an online A/B test for a new recommendation algorithm. The goal is to increase use...
Resolve Stakeholder Conflicts: Actions and Outcomes Explained
Behavioral Interview: Navigating Stakeholder Conflict You are a Data Scientist delivering a product or experiment with stakeholders such as Product, E...
Reconstruct a binary tree from traversals
This question evaluates understanding of binary tree traversal properties, data structure manipulation, and algorithmic complexity involved in reconst...
TikTok Product Strategy & Case Design
Product Decision-Making and Design Prompts: TikTok PM You are interviewing for a Product Manager role. Answer the following mini-prompts. State assump...
Secretary Problem – Selecting the Most Valuable Painting
Optimal Stopping Prompt: Choosing a Painting from 100 Rooms You are invited to an island with 100 rooms, each containing one painting. You may enter t...
Solve linked list, string filtering, and puzzle
This multi-part question evaluates proficiency with linked-list pointer manipulation and constant-space linear-time algorithms, pattern-driven string ...
Explain motivations, background, and success metrics
Give a concise overview of your background in e‑commerce risk control (30–60 seconds). Then: (1) Why do you want to join our e‑commerce risk team spec...
Demonstrate leadership in cross-functional disagreement
Behavioral & Leadership (HR Screen, Data Scientist) Prompt Describe a time you disagreed with a partner team (e.g., product pushing for more aggressiv...
Analyze shopping funnel with joins and windows
Write SQL (PostgreSQL) to analyze a 4-step shopping funnel: view_product → add_to_cart → checkout_start → purchase. Use the schema and sample data bel...
Design and evaluate a dasher bike rollout
Program Evaluation: Allow Car Dashers to Also Use Their Own Bikes/E-bikes Context DoorDash (DD) will relaunch an opt-in feature that lets existing car...
Interpret and validate regression with interactions
Modeling 7-day Retention with LPM and Logistic Regression Context You have user-level data with a binary outcome retained_7d (1 if the user is active ...
Diagnose a watch-time drop and design experiments
This question evaluates a data scientist's competency in experimental design, causal inference, metric selection and definition, segmentation, and sta...
Analyze DFS, BFS, and A* trade-offs
Given a weighted graph with nodes {S,A,B,C,D,G} and edges: S–A(2), S–B(5), A–C(2), B–C(1), C–D(2), D–G(1), B–G(20). Heuristic for A*: h(A)=4, h(B)=3, ...
Choose linear regression or decision tree appropriately
Choose Between Linear Regression and a Decision Tree Under a Hinge and Interaction DGP Context You have 100,000 i.i.d. observations with features x1 (...
Contrast LSTM and Transformer for long sequences
This question evaluates understanding of sequence-model architectures and system-level trade-offs for long-context autoregressive language models, cov...
Estimate heterogeneous treatment effects with causal ML
Context You are given large-scale, logged observational data from an always-on promotion. Each record contains features X (user/context), a binary tre...