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
Users complain that YouTube Music shuffle plays long streaks from one artist. In a 40-track session alternating between two artists' songs, you observe only 8 runs (maximal streaks). Test whether this sequence is consistent with a random shuffle.
A feed request is sent to n replicas in parallel and the first response wins. If each replica's latency is independent and uniform between 0 and 100 ms, what is the expected latency of the fastest response, and what is the expected latency if you instead had to wait for all n?
The Meta Quest team uses daily sessions per headset as its main engagement metric. Propose a better metric for whether owners are getting ongoing value from their headset.
Design how images produced by ChatGPT's image generation are stored, served quickly to the user who created them, shared by link, and deleted with the conversation.
Design the system that lets a driverless truck ask a human operator in a command center for guidance (for example, confirm a lane closure path or approve passing a stopped emergency vehicle) over cellular links, where the truck always stays responsible for its own safe motion.
A fair coin is flipped repeatedly. Find the expected number of flips until HHT appears and until HTH appears, then find the probability that HHT appears before HTH. Which side would you take at even odds?
In a People You May Know model, many users leave fields such as school, workplace and hometown blank. Explain how you would handle these missing values as features and why simple mean imputation may hurt.
Design sync for Google Keep so users can create and edit notes and checklists offline on phones, web and watches, then merge changes from several devices without losing edits when they reconnect.
A cart service computes totals with floats and occasionally charges customers a cent less than the receipt shows. Find the root cause, fix the money math, and write tests that would have caught it.
Describe a time you had to tell someone senior that a feature or result they were excited about was flawed. How did you handle it?
Design the cloud platform that ingests, stores and serves telemetry and alarms from millions of connected meters, breakers, UPS units and drives reporting through site edge gateways, with dashboards, alarm notification and historical analytics.
Given search results already sorted by relevance as (product_id, brand_id), reorder them so that no more than k products from the same brand appear consecutively, while keeping the order as close to the original ranking as possible. If the constraint cannot be satisfied, append the remaining products in score order.
Capital One wants to know whether an expense-categorization feature for Spark business card employees helps directly and also helps coworkers through shared practices. Design an experiment that measures both the direct effect and the spillover effect.
Simulate a non-preemptive scheduler that runs backup jobs on k ingest slots, always starting the highest-priority waiting job, and return each job's completion time.
A redesigned restaurant store page showed a 3% lift in add-to-cart in week one of an A/B test, but the lift shrank to 1% by week three. How do you decide the true long-term effect?
You trained a new ranking model for the For You feed. Which offline metrics would you use to decide if it is worth an online test, and why?
Design the notification path that alerts a user on their phone, desktop app or email when a long-running ChatGPT task such as a deep research report completes, even if they closed the app.
Given an m x n grid of distinct integers, return every value that is the smallest in its row and also the largest in its column.
A Threads test of new follow suggestions shows a large increase in follows, but many follows come from accounts later flagged as automated. Explain how bots affect the experiment and how to analyze it.
A "Hey Google" hotword model works in quiet rooms but false-rejects in cars and kitchens, and the training set is mostly clean recordings. Explain how data augmentation acts as regularization and which augmentations you would apply.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.