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."
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 ...
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 &...
Calculate transaction fees from CSV records
This question evaluates parsing and processing of structured transaction data, implementing multi-dimension fee computation rules (provider-, transact...
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...
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...
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...
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...
Design LLM-enhanced recommendation solutions
Design LLM-enhanced recommendation solutions System Design: Incorporating Large Language Models (LLMs) into a Large-Scale Recommendation System Contex...
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...
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...
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...
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 ...
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...
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...
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 ...
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...
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...
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...
Design a creator posting-frequency experiment
This question evaluates experimental design and causal inference competencies for a Data Scientist, including precise metric definition, randomization...
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...