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 each business's open hours as a list of [start, end) minute intervals within the week (a business's own intervals may overlap), return the maximal time windows during which at least k distinct businesses are open simultaneously.
A video is split into n segments, each with an estimated bandwidth capacity, and the encoding ladder offers a sorted list of bitrates. Choose one bitrate per segment that never exceeds that segment's capacity, maximizing the sum of chosen bitrates minus a fixed penalty for every change between consecutive segments.
After Facebook shipped a redesigned password reset flow, the overall login success rate dropped from 94% to 91%. Did the redesign cause it, and is it bad?
Implement a jitter buffer that accepts RTP audio packets with 16-bit sequence numbers arriving out of order, duplicated or late, and on each 20 ms playout tick returns the next packet in order or None for concealment.
Each engineer has a set of skills; each open project needs one primary skill and has a fixed number of seats. Assign each engineer to at most one project they qualify for so that the number of staffed seats is maximized.
Given the root of a binary tree, return the values of the nodes you would see standing to the right of it, from top to bottom, meaning the last node on each level.
From index i, odd-numbered jumps go to the smallest value at least a[i] to the right (smallest index on ties), and even-numbered jumps go to the largest value at most a[i] to the right. Count starting indices that can reach the last index.
Implement a payment-creation endpoint for bank clients that accepts an idempotency key, so a retried request with the same key and body returns the original response without moving money twice, while reuse of a key with a different body is rejected.
Servers run integer version numbers. One upgrade step raises one server's version by 1. With at most k total steps, return the largest number of servers that can end up on the same version.
Implement a structure with update(symbol, price) and top_k(k). Each symbol's first price is its reference; top_k returns the k symbols with the largest absolute percentage move from reference, largest first.
Design the system of record for what Uber owes each driver: fares, tips, incentives, fees, refunds, and later adjustments, such that balances are always explainable and reconcile to money actually paid out.
Ad-level daily spend rows carry account_id, campaign_id, ad_set_id and ad_id. Produce a single report table containing ad set subtotals, campaign subtotals and account totals, each labeled with its level, sorted so each subtotal follows its children, and with each row's share of its parent.
Given a grid of elevations, find a path from the top-left to the bottom-right cell moving in four directions that minimizes the largest absolute height difference between consecutive cells. Return that minimum effort.
Given Marketplace listings and buyer messages, write SQL that returns, per category for listings created last month, the share that received a buyer message within 7 days and the median hours to that first message.
Design an ML system that ingests sensor telemetry and maintenance history from tens of thousands of industrial assets across many sites, predicts which assets are likely to fail in the next 30 days, and surfaces a small ranked list of actionable alerts to reliability engineers.
Among 1,000 Android Gmail users, 300 turned on a new summary feature; among 800 iOS users, 200 did. Test whether adoption is independent of platform.
Fashion has the highest return rate in Flipkart's catalog, mostly due to size and fit. What features would you build to predict, at checkout time, whether an order will be returned?
Design the ledger that records every balance change for businesses holding many currencies, covering deposits, FX conversions, card spend and payouts, with strict correctness, auditability and high write throughput.
You are evaluating a new model that predicts trip ETA at request time. Which offline metrics would you report, and how would you decide whether it is better than the current model?
Implement an in-memory key-value store supporting set, get, delete and count of keys holding a value, plus begin, rollback and commit with arbitrarily nested transactions.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.