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."
Model overdispersed counts; estimate treatment lift
Weekly posts per creator are overdispersed and zero‑inflated. In a creator‑level randomized test of a nudge: - Control: n_c=40,000 creators, total pos...
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...
Design robust metrics for a feature launch
A/B Test Metrics and Guardrails for Quick Reply (1-week) Context You are adding a Quick Reply feature (suggested reply chips in the DM composer) to a ...
Reflect on a challenging project you led
Behavioral Prompt: Leading an End-to-End Project That Changed a Product Decision Context: You are a Data Scientist interviewing for a consumer tech pr...
Design causal measurement without randomization
Causal Study Design: Notification Feature Impact on 7-Day Retention Context: A new notification feature shipped on 2025-06-01. Randomized rollout was ...
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...
Explain a challenging project end-to-end
Behavioral Question: Explain a Challenging Project End-to-End Context: Behavioral and leadership prompt for a software engineer in a technical screen....
Find substring where all chars appear at least k
You are given a string s and an integer k (1 ≤ k ≤ |s|). Return the length of the longest substring in which every distinct character occurs at least ...
Fix a BST with two misplaced keys
You are given the root of a binary search tree in which exactly two nodes’ keys were accidentally swapped. Restore the tree so that its in-order trave...
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...
Explain Your Experience and Interest in Tech Role
Scenario Initial HR screening call for a TikTok Data Scientist internship/full-time role. The recruiter moves quickly through a fixed sequence of beha...
Design query generation to maximize CTR
Question Design an end-to-end query-generation system that maximizes click-through rate (CTR) for a large-scale search/recommendation product. Walk th...
Explain Java DI, AOP, and transactions
Explain how dependency injection and AOP proxies are implemented in a modern Java framework such as Spring: bean lifecycle (creation, post-processing,...
Optimize Job Routing in Parallel Machine Scheduling
Scenario In the Production Factory game, jobs with varying processing times arrive and must be routed through two parallel machines to minimize total ...
Evaluate Responses to Teammate's Missed Deadlines
Behavioral Scenario: Choosing Best vs. Worst Responses Context You are completing a behavioral questionnaire that presents workplace dilemmas. For eac...
Improve TikTok's Algorithm for Diverse Content Discovery
Product Feedback and Experimentation Case Context You are a frequent TikTok user interviewing for a Data Scientist (Analytics & Experimentation) role....
Login Flow Critique, Feature Improvement & Data Privacy
Product Case: Login, Feature Improvement, and Data Safeguards Context You are evaluating a widely used short‑form video app (TikTok). Assume standard ...
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...
Compute last-to-previous ad impression gaps
Given impressions(ad_id INT, user_id INT, impression_ts TIMESTAMP) with multiple impressions per (user_id, ad_id), write a single SQL query to return,...
Write SQL for last-7-day metrics without windows
Assume today is 2025-09-01. Use ANSI SQL only and do not use window functions. You may use subqueries, GROUP BY, HAVING, and JOINs. Schema and small s...