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 N particle positions in a cubic box of side L with periodic boundaries, return all pairs closer than a cutoff rc under the minimum image convention, in roughly O(N) time for uniform density.
Describe a time you disagreed with a plan, deadline or metric because it would have hurt customers, how you made your case, and what happened.
Given a list of daily returns and a window length w, return for each day the z-score of that day's return against the trailing w-day window (including the day), or None until the window is full. Aim for O(n) total time.
Design a change-control service that pushes a configuration change to hundreds of leaf and spine switches in stages, validates health after each stage, and automatically rolls back on failure.
An order contains n distinct SKUs (n up to about 16), and each fulfillment center stocks some subset of them with a fixed per-parcel shipping cost. Choose fulfillment centers so every SKU is shipped, minimising first the number of parcels and then total shipping cost, and return which center ships which SKU.
From a payment attempts table, flag customers who had five or more failed payment attempts within any ten-minute window, and return when their first such burst started.
Describe a time you and a designer disagreed about a UI decision that affected accessibility or usability, and how you reached a resolution.
Given a post draft containing text and simple markup tags like <b>, </b>, and self-closing <br/>, return True if every opening tag is closed by a matching tag in the correct nesting order and every angle bracket forms a well-formed tag.
Implement a read cache for vdisk blocks where identical content written by different VMs is stored once: `put(vdisk, offset, data)` and `get(vdisk, offset)` with a total byte capacity, LRU eviction by content, and correct cleanup when a logical block is overwritten with different data.
Given a list of per-minute watch increments for a Watch session log (values may be negative after corrections) and an integer k, count the contiguous subarrays whose sum is divisible by k.
A binary search tree stores timestamps of indexed events. Given a target time and k, return the k stored values closest to the target, in any order.
Given events(user_id, ts, event_type) with ts in epoch seconds, split each user's activity into sessions where a gap of more than 30 minutes starts a new session, and report each session's start, end, event count and number of saves.
Amazon ships through its own delivery network and several third-party carriers. Define a late delivery metric that compares carriers fairly despite different routes and package mixes.
Permissions form a DAG where an edge [a, b] means holding permission a implies permission b. Given n permissions, the edges, and many queries [u, v], return for each query whether holding u implies v, directly or transitively.
Design the endpoint a finance admin's client calls to issue a virtual card so that retries after timeouts never create duplicate cards, and implement the idempotency layer that sits in front of the handler.
Instagram tests a redesigned bottom navigation bar, and in the first week engagement in treatment drops 3%. Explain how to tell change aversion from a genuinely worse design and how to set up the test to learn the long-run effect.
Design the system that moves objects in an Azure Blob Storage-like service between hot, cool and archive tiers based on lifecycle rules and access patterns, including the rehydration path for archived data.
A Meta ads ranking test ran for seven days, but many purchases are reported up to seven days after the ad click. Explain how to read conversion metrics without bias and when the test can be called.
Given kitchen prep steps with durations and before/after dependencies, compute the minimum time to finish all steps with unlimited cooks working in parallel, return the critical path, and report a cycle as impossible.
Each delivery booking has a start and end time within the day. Return the minimum number of delivery executives needed so that no executive handles two overlapping bookings.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.