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
Implement content-defined chunking with a rolling hash, then compute how many bytes must be uploaded to store a new file version when the previous version's chunks are already stored.
Given a store's weekly hours as (day, open_minute, close_minute) rows where a close earlier than the open means the window runs past midnight, build a structure that answers whether the store is open at a given day and minute.
Given raw courier scan events (out for delivery, delivered, failed attempt) with duplicates and reassignments, plus the promised delivery time per package, compute each courier's on-time delivery rate as of a given time, attributing undelivered overdue packages to the last courier who took them out.
Premium card members get many travel benefits (lounge access, hotel credits, airline fee credits, travel insurance) but many members never use them. As the product manager, how would you decide what to build first in the mobile app to raise benefit usage and retention?
Design the on-device and server components that decide when the Facebook app syncs in the background (prefetching feed, uploading queued posts, refreshing notifications) so content is fresh on open while respecting battery, data plans, and OS background limits.
User IDs that come online arrive one at a time as non-negative integers. Support add(id) and ranges(), where ranges() returns the IDs seen so far as a sorted list of disjoint [lo, hi] inclusive ranges.
Meta stopped showing news links to users in Canada because of new legislation, with no holdout possible. Estimate how the change affected Facebook engagement in Canada.
Given the sequence of product IDs a shopper viewed, return the length of the longest contiguous stretch in which no product ID repeats.
A portfolio has 1,000 card accounts, each with 5,000 dollars exposure at default, a 4% annual probability of default, and 85% loss given default. Compute expected loss and the standard deviation of loss, first assuming independent defaults and then with a pairwise default correlation of 0.02.
Given a list of distinct words, return every word that can be written as a concatenation of at least two shorter words from the same list.
You train a model to predict 5-day forward returns from daily features. Explain why standard k-fold cross-validation gives misleading results and design a validation scheme that does not leak information.
Tell me about a time you disagreed with a decision, made your case, lost, and then had to lead your team in executing it. How did you commit, and what happened?
A static analyzer collects constraints of the form a == b or a ~= b between variables in order; return the index of the first constraint after which the whole set can no longer be satisfied, or -1 if all are consistent.
From a Google Play purchases table, return users whose net monthly spend increased strictly for three consecutive calendar months.
Tell me about a time a customer or partner issue came to you and you judged it less serious than it was. How did you discover your misjudgment and what did you change in how you assess customer-reported issues?
Given a list of photos as (photo_id, byte_size, content_hash) tuples, return every group of photo ids that are true duplicates, where duplicates share both size and hash. Each group should be sorted, and groups should be ordered by their smallest id.
Given a map from words to corpus frequencies and a merge budget, learn byte pair encoding merges by repeatedly fusing the most frequent adjacent symbol pair (weighted by word frequency), returning the ordered merge list and the final segmented vocabulary.
As a manager, tell me about a time you disagreed with your own manager or the calibration group about the performance rating of someone on your team. What did you do?
Describe a project you owned that shipped and then hurt the people it was meant to help. How did you find out, what did you do in the first days, and what did you change about how you work?
You have internal package scans (package_id, scan_ts, facility) and an external carrier status feed (package_id, status_ts, carrier_status). In pandas, attach to every scan the most recent carrier status for the same package at or before the scan time, ignoring statuses more than six hours old.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.