Practice questions for 300+ companies, plus questions candidates reported from their interviews.
11,568 questions · 341 companies · 1,114 reported by candidates
Showing 11,568 results
Write SQL that, for each weekly signup cohort on Threads, returns the number of new users and the share who followed at least five distinct accounts within seven days of signing up.
Implement a class that receives request latency samples one at a time and, after each sample, returns the average of the most recent N samples (or of all samples if fewer than N have arrived).
Each slot in a Discover feed has an expected ad revenue, but policy forbids ads in two adjacent slots. Return the maximum total revenue you can earn by choosing which slots get ads.
Your experiment is randomized by user, but the metric is likes per video viewed. Explain why the naive standard error is wrong and compute the correct one with the delta method.
TikTok ads auctions rank ads by bid times predicted conversion rate. The model's AUC is strong, but advertisers complain they overpay. Diagnose and fix the calibration problem.
Given daily Reels ads revenue and a quarterly target, report for each day of Q4 2026 the quarter-to-date revenue, the linear pacing target, and a seasonally weighted target based on last year's daily revenue shape. Show the percent ahead or behind under each.
Given source code produced by a model, check that (), [] and {} are balanced and properly nested, ignoring characters inside single or double quoted strings (with backslash escapes); return success or the index of the first problem.
Meta gives promotional ad credits to small advertisers, and the credit team targets businesses whose spend recently dropped. Each month's credits affect next month's spend, which drives the next targeting decision. Estimate the effect of a sustained credit program on 6-month advertiser retention.
Accepted translations are stored compactly as a sequence of slots, where each slot lists alternative word sequences and an empty alternative makes the slot optional. Given a learner's answer, return the minimum word-level edit distance between the answer and any sentence the template can generate, without expanding all sentences.
A workflow file defines jobs, each with a list of jobs it needs to finish first. Return the jobs grouped into stages where every job in a stage can run in parallel once all earlier stages finish, and raise an error naming the jobs involved if the needs graph has a cycle or references a missing job.
Design and implement the lifecycle of a payroll run (draft, calculated, submitted, processing, paid, failed, cancelled) so that illegal transitions are rejected, edits invalidate calculations, and replayed events are harmless.
Design the service a core banking platform uses to move money between accounts (internal transfers and outbound payments to a national rail), guaranteeing no double debits, a balanced ledger, and correct handling of retries and timeouts.
A field rep edits a call report offline on an iPad while the same record changes on the server. Given the base version both sides started from, the local version and the server version, produce a field-level merged record and a list of true conflicts.
Using a play_sessions table (account_id, title_id, region, session_start, minutes), return for November 2026 the top three titles per region by total minutes played, with their distinct player counts, keeping ties.
From hourly Instagram photo upload counts per region, find for each region and day the four consecutive hours with the most uploads, returning the window's start hour and its share of the day's uploads.
Implement a monitor for a fixed-period control loop that records each cycle's wake and completion time, counts deadline misses, tracks worst latency and period jitter in constant memory, and trips a safe-stop flag after N consecutive misses. Then explain what causes misses on a real-time Linux system.
Given order_lines (order_id, asin, order_ts, quantity) and a type 2 slowly changing price_history table (asin, list_price, valid_from, valid_to, with valid_to NULL for the current row), attach to each order line the list price that was in effect when the order was placed.
Flipkart wants to raise the minimum order value for free delivery for non-Plus customers. Design the experiment: unit of randomization, primary and guardrail metrics, sample size reasoning, and how you would decide whether to ship.
You need a model that forecasts tomorrow's hourly electricity load for each of thousands of commercial buildings so an energy management system can plan pre-cooling and battery dispatch. Walk through features, model choice, evaluation and how you would beat a naive baseline.
Given automation roles and their prerequisite roles, return a valid execution order, or if impossible, return the set of roles that are stuck because they sit on or behind a dependency cycle.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.