Tiktok Software Engineer Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Flatten object & Promise.all
Question Given a nested JavaScript object, write a function to flatten it so that nested keys are converted to a single-level path (e.g., {a:{b:1}} ->...
Explain Your System Architecture
System Design Interview: End-to-End Architecture Deep Dive Task Explain the end-to-end architecture of a production system you built or can credibly d...
Count deletions making array fair
Question LeetCode 1664. Ways to Make a Fair Array – Given an integer array nums, count the indices whose removal results in the sum of elements at eve...
Solve intervals and distinct islands
Question LeetCode 56. Merge Intervals LeetCode 694. Number of Distinct Islands https://leetcode.com/problems/merge-intervals/description/ https://leet...
Describe toughest challenge and resolution
Behavioral Prompt: Most Challenging Recent Problem (Technical Screen) Provide a concise, structured response (2–3 minutes spoken) that covers: 1. What...
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....
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 ...
Find >n/3 elements in sorted array
Given a sorted (non-decreasing) integer array A of length n, return all distinct values that occur strictly more than n/3 times. Design an algorithm t...
Find top-k rated nodes via traversal
You are given a finite graph (directed or undirected) with n nodes and m edges. Each node u has an integer rating r[u]. Given a starting node s and an...
Describe a service performance challenge
Behavioral: Improving a Production Service's Performance Describe a challenging time you improved the performance of a production service. Include the...
Compute rooms and verify tree completeness
1) Given a list of closed-open time intervals [start, end) representing meetings on a single calendar, compute the minimum number of rooms required so...
Improve and measure service performance
Assessing and Improving a Service’s Performance Under High Load Context You are responsible for a user-facing, stateless HTTP microservice that handle...
Explain gap and project contributions
Behavioral/Technical Screen: Recent Work and Project Deep-Dive Context You are in a technical screen for a Software Engineer role. The interviewer wan...
Count islands on a torus grid
You are given an m x n binary grid representing water ( 0) and land ( 1) laid out on a torus: the top edge is adjacent to the bottom edge and the left...
Handle disorganized interview logistics
Behavioral Prompt: Handling a Disorganized Interview Process (Software Engineer — Technical Screen) You are preparing for a Software Engineer technica...
Define and measure project metrics
Design and Measurement: Metrics, Instrumentation, and Experiment Plan Context (added for clarity) You are shipping "Freshness Boost," a change to the ...
Segment a message with width-constrained suffixes
Given a message string s and an integer width W, split s into consecutive segments and append a suffix "i/n" to each segment indicating its 1-indexed ...
Design a high-concurrency ticketing system
Design a High-Concurrency Ticketing/Flash-Sale System (Limited Seats) Context You are designing the backend for a limited-seat flash sale (e.g., conce...
Implement a match-3 eliminator
Implement a 2D match-3 eliminator: Given an m×n grid of integers, repeatedly remove any cells that belong to a horizontal or vertical run of length ≥ ...
Find >n/3 elements in sorted array
Given a sorted array of integers nums of length n, return all values that occur more than floor(n/ 3) times. Design an algorithm that runs in O(log n)...