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 common string/DP/stack problems
You are given four independent coding tasks. For each task, describe your approach and analyze time and space complexity. Task 1: Longest substring wi...
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...
Write SQL for geo posting-frequency drops
Using the schema below, write a single ANSI SQL query (window functions allowed) that identifies countries with the largest share of creators whose po...
Compute minimum path sum in a triangle
Given a triangle of integers represented as a list of rows, find the minimum path sum from the top to the bottom. - From row r and index c, you may mo...
Implement AUC-ROC, softmax, and logistic regression
You are asked to implement a few core ML building blocks from scratch (no ML libraries such as scikit-learn). You may use basic numeric operations and...
Design low-latency large-scale hotel booking system
You are asked to design the backend for a large-scale hotel booking system that runs behind a very high-traffic consumer app (think a TikTok-like app ...
How would you measure misinformation impact and recommendation bias?
You are interviewing for an experienced Data Scientist role on a short-form video platform (e.g., TikTok). Product sense / case questions come up freq...
Find longest substring with ≥k repeats
Problem You are given: - a string s (consisting of lowercase English letters), and - an integer k. Return the length of the longest contiguous substri...
Explain overfitting, dropout, normalization, RL post-training
Machine Learning fundamentals Answer the following: 1. What is overfitting? How can it be mitigated in machine learning? 2. Narrowing to deep learning...
Find top-paid employee per department
Tables Assume the company stores employee compensation by department assignment. employee_dept_salary - employee_id INT - employee_name VARCHAR - depa...
Compute balances, rejections, and platform reserve
You are given a set of transactions in CSV-like format with columns: - account_name, timestamp, currency, amount Assume: - Transactions for all accoun...
Count distinct island shapes in a grid
Problem You are given an m x n grid of integers where 1 represents land and 0 represents water. An island is a group of horizontally or vertically adj...
Maximize watched duration under consecutive-sum limit
You have a list of videos in a feed. Video i has duration d[i] (positive integer). A user has an “attention span” limit A. You want to select a subset...
Design system to detect privacy-leak records
You are given a very large database that contains user data (both structured fields and unstructured text such as logs, messages, and documents). The ...
Explain DPO and construct its training data
You are working on a project to fine-tune a large language model (LLM) using Direct Preference Optimization (DPO). Answer the following: 1. Conceptual...
Diagnose metric drop in Ads Manager
Investigate a 15% Drop in Ad-Creation Completion Rate Context On 2025-06-10, your Ads Manager dashboard shows a 15% relative decrease in the ad-creati...
Introduce yourself and explain your project
Behavioral questions 1. Introduce yourself (education/background, current role, what you focus on). 2. Where are you from? (brief personal background ...
Answer ML fundamentals and diagnostics questions
You are taking a timed online assessment with multiple-select and numeric-response questions. 1) Confusion-matrix metrics (multiple select) A binary c...
Explain motivation for QA and career goals
Questions Answer the following as if speaking to a hiring manager: 1. Where do you want to develop your career in the next 2–5 years, and why? 2. Why ...
Find a valid course order from prerequisites
You are given numCourses labeled from 0 to numCourses-1 and a list of prerequisite pairs prerequisites, where each pair [a, b] means you must complete...