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 friendships table where each friendship may be stored in only one direction, write SQL that returns each user's top 10 non-friend suggestions ranked by number of mutual friends.
An Instagram Shopping analyst wants to know whether seeing more Reels ads for a brand over four weeks increases purchases, using observational logs. Users who browse more get more ads and also buy more. Explain why standard regression fails and what to do.
Given a sequence of order events where 1 means a purchase and 0 means a return, find the length of the longest contiguous window containing the same number of purchases and returns.
In each round, every item that is smaller than the item immediately before it is removed simultaneously; return the number of rounds until the list is non-decreasing.
You control a cleaning robot through an API with move() (returns False if blocked), turn_left(), turn_right() and clean(). The robot does not know the room layout or its own position. Clean every reachable cell.
Google Play order events arrive with repeated and out-of-order status updates (pending, charged, refunded). Return each order's latest status and summarize orders and gross value by final status.
Design the system that lets viewers buy Stars, send them to creators during Facebook Live or Reels, and lets creators see and later cash out what they received.
Tasks can have subtasks nested to any depth. Given the tree, compute for every task how many leaf work items under it are done out of the total, so the UI can show a progress percentage.
Implement a fixed-capacity ring buffer that stores timestamped sensor samples, overwrites the oldest sample when full, and supports fetching the latest k samples and all samples in a time range [t0, t1] efficiently.
Given current share holdings, cash, prices and target weights, compute the whole-share buy and sell quantities that bring the portfolio as close to target as possible without spending more cash than the portfolio has.
Users who upgrade to a paid Google One storage plan churn from Google services less than users who stay free. With only observational data, estimate how much of that gap is caused by the upgrade.
A promotion lets you roll a fair die up to three times, and you receive cashback in dollars equal to your final roll. You may stop after any roll. What strategy maximizes expected cashback, and what is the expected value?
Design a shared service that scans images and videos uploaded to Google products (Photos sharing, Drive public links, YouTube, Chat) for policy violations, using hash matching and classifiers, before or shortly after the content becomes visible.
Instagram tests a reminder that suggests taking a break after long sessions. Time spent will likely fall, so design how the experiment measures whether users are actually better off.
Tell me about a time you mentored a less experienced engineer through delivering something significant on their own.
Packets on an exchange multicast feed carry increasing sequence numbers but can arrive late, duplicated, or not at all. Build a tracker that ingests sequence numbers and reports the ranges still missing, letting late packets fill holes.
Given an n x n grid of integers, count the pairs (r, c) such that row r and column c contain the same values in the same order.
A 50/50 test of a new Venture card application page shows 101,800 users in treatment and 98,200 in control, and treatment wins on approvals. Decide whether you can trust the result and what to check.
Tell me about a time a problem looked solved at a high level but you dug into the raw details and found the real cause. What did you find and how did it change the outcome?
Skippable in-stream ads are charged only when viewers watch long enough or interact. Design a model that predicts whether a viewer will skip an ad and use it to choose which ad to show.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.