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 warehouses and ports as nodes and shipping lanes with a cost and a whole number of transit days, find the minimum cost to move a parcel from a source to a destination such that total transit time is at most D days, or return -1.
Describe a time a reorganization left unclear who owned a system, teams disagreed about it, and how you resolved it.
Given an unsorted list of ports (with possible duplicates) that a service definition allows, return a canonical comma-separated string where consecutive ports are collapsed into ranges, for example 80,443,8000-8002.
Design the classes behind Asana's repeating tasks: when a recurring task is completed, the next instance is created with the correct due date for daily, weekly-on-certain-days and monthly-on-a-day schedules.
A courier moves only right or down across a city grid from the top-left to the bottom-right block, and some blocks are closed; return the number of distinct routes, modulo 1,000,000,007.
Given settled debit card purchases as (day, amount_cents), compute how many cents to sweep into savings each day by rounding every purchase up to the next whole dollar, with an optional boost multiplier and daily cap.
Given the root of a binary tree describing a split-pane layout, decide whether the tree is a mirror image of itself around its center.
Implement a thread-safe inventory service where checkout reserves units with an expiring hold, payment confirms the hold, and expired or cancelled holds return stock, so that a flash sale with thousands of concurrent buyers never sells more units than exist.
Design a platform that lets service teams schedule fault injection experiments (added latency, failed calls, instance termination) against a small slice of real production traffic, compares the slice with a control, and aborts automatically when customer impact appears.
Design how a Square Point of Sale device keeps taking card payments when its internet connection drops, stores them securely, and forwards them for authorization when connectivity returns, without double charging or losing payments.
Google wants to raise reserve prices in some Search Ads auctions. Design an experiment that measures revenue impact while accounting for advertiser budgets and bidding adjustments.
Design the core of a crypto exchange: accept orders for hundreds of trading pairs, match them with price-time priority at low latency, and publish order book updates and trades to hundreds of thousands of WebSocket subscribers.
Each node of a doubly linked list of replies may have a child pointer to another doubly linked list of nested replies. Flatten it into a single level so each child list appears right after its parent, and clear all child pointers.
Given an m by n grid of letters from a word-game sticker pack and a list of dictionary words, return every word that can be traced by moving between horizontally or vertically adjacent cells without reusing a cell within one word.
A strategy's P&L moves up one unit with probability 0.55 and down one unit otherwise each period. Starting at zero, what is the probability it reaches +10 before -10, and how does the answer generalize?
A client wants proof that first-round interview scores predict onsite outcomes, but only candidates who scored well were sent onsite. How would you estimate the predictive validity of the score, and how would you present it?
Given diarization output as (speaker, start, end) segments in seconds, merge consecutive segments from the same speaker into one turn when the silence between them is at most max_gap seconds. Return the turns in time order.
Tell me about a time several urgent problems hit at once and you had to decide what your team worked on first. How did you prioritize and communicate?
Tell me about a time the team made a decision, a teammate disagreed, and afterward they did not really commit to it. How did you handle it?
Snapshots are stored as one full image followed by block-level deltas. Implement expiring any snapshot except the newest so every remaining version still restores to exactly the same data.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.