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 caption string s and a hashtag body p, return all start indices in s where some permutation of p appears as a contiguous substring.
Given message events (request id, pro id, sender, timestamp), award a fast-responder badge to each pro whose median first-reply time is at most 60 minutes, whose reply rate is at least 80%, and who has at least 5 customer-initiated threads.
The feed ranker must predict finish, like, share, follow and watch time for each candidate video. Explain how to structure a multi-task model and handle conflicts between tasks.
A log lists trip IDs, and every completed trip appears exactly twice (start and end). Exactly two trips are missing their end event and appear once. Return those two IDs in O(n) time and O(1) extra space.
Given per-second bitrates of a video, return the sum over all contiguous segments of the minimum bitrate in that segment, modulo 10^9 + 7.
Tell me about a time you were asked to fix a narrow bug but realized customers were affected by a bigger underlying problem. What did you do?
Describe a time an experiment or analysis you designed showed your own idea was wrong, and what you did with that result.
Google Docs is testing a redesigned comment notification that should get collaborators to respond faster. You suspect treated users' faster replies also speed up their untreated collaborators. Design an experiment that measures both the direct effect and the size of the spillover.
Using daily ad spend per advertiser, compare last complete week to the week before and return the 50 advertisers with the largest absolute spend drop, counting a missing week as zero spend.
Design version history for Google Docs: users browse earlier versions grouped by time and author, name versions, compare any two versions, and restore an old version, for documents with years of edits.
Design the system that computes daily active people across Facebook, Instagram, Messenger, and WhatsApp, counting each person once even if they use several apps, with daily, weekly, and monthly rollups.
A host with one listing receives several pending booking requests, each with check-in, check-out (exclusive), and payout. Choose a set of non-overlapping requests that maximizes total payout and return both the payout and the chosen requests.
Write a compiler that turns a Sigma-style formula such as `If([Revenue] > 1000, "big", "small")` or `[Revenue] - [Cost] * 2` into a SQL expression with correct operator precedence, quoted identifiers mapped to physical columns, safely escaped string literals, and clear errors for bad input.
Implement an in-process cache for a retail client's product catalog that holds at most N entries, evicts the least recently used entry when full, and treats each entry as missing once its time to live has passed.
A retailer runs its storefront, order management and pricing in one large Java monolith over a shared Oracle database. Design how you would incrementally move to independently deployable services on the cloud while the business keeps taking orders every day.
Latency thresholds are stored as integers in a binary search tree. Given a floating-point target, return the stored value closest to it, breaking ties toward the smaller value.
Design an ML system that detects spam Pins (deceptive links, scraped content farms) and fake engagement (bot saves and follows) on Pinterest, acting fast enough to limit distribution while keeping false positives on real creators low.
Design the system that ingests tracking data from ocean carriers, terminals, airlines, truckers and vessel AIS positions, and produces one live timeline and ETA per shipment for shippers and operations staff, with proactive delay alerts.
Given non-negative integer heights of adjacent unit-width bars, compute how many units of rainwater are trapped between them after it rains.
Tell me about a time you built data or a platform for an internal team whose requirements kept shifting, and how you kept them successful without endless rework.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.