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
Facebook changed the default post audience for brand-new accounts from Public to Friends on a single date, for everyone. Estimate the effect of the new default on new users' posting and 30-day retention.
Amazon Locker codes are the integers 1 to n, but the kiosk lists them sorted as strings (1, 10, 100, 11, ...). Given n and k, return the kth code in that order without generating or sorting the whole list, for n up to 10^9.
Items on a conveyor belt are labeled by type. A packing station can handle at most k distinct types at once. Return the length of the longest contiguous segment of the belt containing at most k distinct item types.
In mid-2020 India banned TikTok, and Instagram launched Reels in India within weeks. Instagram usage in India jumped. Explain why attributing the jump to Reels alone is a problem and how you might separate the two causes.
Prime members spend far more than non-members. Using observational data, estimate how much of that gap is caused by joining Prime rather than by who chooses to join.
Walmart's product taxonomy is stored as a binary tree of category names. Given two category names, return the deepest category that contains both, or None if either name is not in the tree.
Design a shopping list that several household members edit from the Amazon app, the web and Alexa voice commands, with changes appearing on every device within seconds and offline edits merging cleanly.
Tenant A resolved 28 of 40 assistant conversations last week (70%), and tenant B resolved 6,200 of 10,000 (62%). A dashboard ranks A above B. Quantify the uncertainty in A's rate and explain how you would rank tenants fairly.
Design how Find My locates a lost, offline AirTag or iPhone using nearby Apple devices that relay encrypted location reports, without Apple learning who owns the device or where it is.
New Instagram creators whose first Reel gets at least one comment are far more likely to post a second Reel. Estimate whether receiving comments causes creators to keep posting, without running an experiment that fakes engagement.
Given an R x C matrix, if any cell is 0, set its entire row and column to 0. Do it in place using constant extra space.
A Quest controller has n status LEDs. Produce an ordering of all 2^n on/off states, starting from all off, where consecutive states, including last back to first, differ in exactly one LED.
Design a service that collects crash and ANR reports from Android apps in the field, symbolicates and groups them into issues, and shows developers crash-free user rates and new issue alerts in near real time.
A traveler needs m consecutive nights and can choose among n hotels, where price[h][d] is hotel h's rate for night d and each hotel requires at least min_nights[h] consecutive nights per stay; every hotel change costs a fixed switch_fee. Return the minimum total cost to cover all nights, or -1 if no valid plan exists.
Chase rolled out a spending insights tab in the mobile app to all customers in three states first, and leadership wants to know whether it increased savings deposits and app engagement before the national launch. How would you estimate the effect without a randomized experiment?
You receive a pandas DataFrame of daily Prime Video watch hours per region (date, region, watch_hours), but days with a logging outage or no data are simply absent. Produce a dense daily series per region over a given date range, filling missing days with zero and flagging which rows were filled.
Design the system that tracks and enforces how much cloud storage each WhatsApp user's encrypted chat backups use, warning users as they approach their limit and handling backups that would exceed it.
Given raw connection events (ts, src, dst, port, proto, bytes) in arbitrary order, group them into flow summaries per 5-tuple key where a new summary starts whenever the gap since the key's previous event exceeds T seconds. Return first seen, last seen, count and total bytes for each summary.
Comment scores are stored as a nested list where each element is either an integer or another list. Return the sum of every integer multiplied by its nesting depth, where top-level integers have depth 1.
Given a numeric promo code string and an integer k, delete exactly k digits so the remaining number is as small as possible, and return it without leading zeros (or "0" if empty).
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.