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
Given a chronologically ordered list of ride requests as (rider_id, timestamp_seconds), return the indices of requests that arrive within k seconds of a previous request from the same rider so they can be deduplicated.
A homepage carousel shows ten near-identical phone cases because they all score highest. Explain how you would re-rank for diversity using maximal marginal relevance and how you would tune the trade-off.
Tell me about a time a customer or internal team hit a production failure in an environment you could not directly access, and how you diagnosed and resolved it with them.
Design an LLM assistant that answers employee questions using the company's indexed documents and chats, citing sources, respecting each user's permissions, and declining when the evidence is insufficient.
Given ad bids sorted in ascending order and a campaign budget, return the indices of two different bids whose sum equals the budget exactly, or an empty list if no such pair exists.
Design the classes for TikTok LIVE gifting: viewers buy coins, send catalog gifts priced in coins to a creator during a LIVE session, and creators accrue diamonds they can later cash out. Implement the core send_gift flow with validation and an auditable ledger.
Describe a time you disagreed with a customer or business stakeholder about how a product should treat their end users, for example a policy you believed would hurt user experience. How did you handle it and what happened?
Given (timestamp, speed in m/s) samples at irregular intervals, find harsh braking events where deceleration is at least a threshold, merging consecutive flagged intervals into one event with its start, end and peak deceleration.
A user's moderation history is a list of ban windows [start, end]. Remove every ban fully covered by another ban (c <= a and b <= d) and return how many bans remain.
A product is sold in several pack sizes with unlimited supply. Return the fewest packs that add up to exactly the requested quantity, along with the packs chosen, or report that the quantity cannot be made.
A brand ran a three-month digital media campaign aimed at a list of physicians, with no randomized holdout. Design how you would estimate the incremental prescriptions caused by the campaign and how confident you can be in the number.
Design a tracking system that ingests status updates for cross-border parcels from many carriers (first mile, line haul, customs, last mile), normalizes them into one timeline per order, and powers the order tracking page and delivery notifications.
Tell me about a time you disagreed with leadership on whether to build a system in-house or adopt an existing solution.
Among 4 users, each of the 6 possible friendships exists independently with probability one half. What is the probability the friendship graph is connected, and how does the answer generalize to any p using a recursion?
Design a monitoring backend that ingests CPU, latency, and error metrics from millions of servers every few seconds and answers dashboard and alerting queries over the last 26 hours in milliseconds.
Design the 'Where to?' and pickup autocomplete that suggests places and addresses as the rider types each character, biased toward their location, saved places, and frequent destinations.
After a change to the quoting logic, fill rate on sampled quotes dropped from 12.0% (1,200 of 10,000) to 10.5% (1,050 of 10,000). Is the drop statistically significant, and what would you check before acting on it?
Sixteen equally skilled engineers enter a single-elimination ping pong bracket at a Meta hackathon, with the bracket drawn at random and every match a coin flip. What is the probability two specific engineers play each other at some point, and in the first round?
Given an array of integer error-count deltas from Azure telemetry (values can be negative) and a target k, count the contiguous subarrays whose sum equals k.
Design a class that tracks units on hand for items in one store and lets checkout place time-limited holds. Support restock, available, hold (returns an id or None), commit and release, with holds automatically expiring after a fixed TTL.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.