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
A grid marks land with 1 and water with 0 and contains exactly one island with no lakes. Return the length of the island's perimeter.
Store A reports a mean prescription wait of 14.2 minutes (sd 9.0, n = 200 orders) and Store B 12.1 minutes (sd 7.5, n = 180). Test whether the stores differ, give a confidence interval, and discuss whether the t-test is appropriate for skewed wait times.
In a Bluetooth pairing log for Ray-Ban Meta glasses, every device ID appears exactly twice except two IDs that appear once each. Return those two IDs in linear time and constant extra space.
Ten fair coins will be flipped and the contract pays the number of heads. Quote a market, update it after learning the first three flips were heads, and then decide how to react when a trader who has seen all ten flips buys at your offer.
Implement an in-memory ledger that processes commands SET driver amount, GET driver, UNSET driver, COUNT amount (drivers with exactly that balance), BEGIN, ROLLBACK and COMMIT, where transactions can nest. Return the outputs of GET, COUNT, and any ROLLBACK or COMMIT with no open transaction.
Given directory listings like 'root/a 1.txt(abcd) 2.txt(efgh)', where each file's content appears in parentheses, return groups of full file paths that have identical content, including only groups with two or more files.
Each log line looks like `08:15:00 d42 ONLINE` or `09:00:30 d42 OFFLINE`, sorted by time within a day. Return each driver's total online seconds, ignoring repeated ONLINE events while already online and closing any open session at midnight (86400).
A truck holds pallets labeled by product type, with repeats. Return every distinct order in which the pallets can be unloaded, where pallets of the same type are interchangeable.
Tell me about a time you transferred ownership of a service or system to another team, and what you did to make the handoff succeed for its customers.
Given a payments table, write SQL that returns sellers who completed payments on at least 5 distinct days in the 90 days before the most recent 30-day window, but have no completed payments in that 30-day window, ranked by their prior volume.
Describe a time you needed a team you had no authority over to prioritize work that your project depended on. How did you get it done?
Road segments are directed edges (u, v, minutes, road_name). A route pays an extra P minutes each time it moves from one road to a differently named road, modeling turns. Return the minimum total time from source to destination, or -1 if unreachable.
Tell me about a time you had to teach or onboard someone more senior than you into an area you knew better. How did you handle the dynamic?
A single GPU worker runs one transcode task per time slot, and two tasks of the same codec must be at least n slots apart because of encoder warm-down; return the minimum slots needed to run all tasks, idling when necessary.
Each video in a user's feed carries a list of hashtags. Given the feed in order and a set of required campaign hashtags, return the shortest contiguous range of videos that together cover every required hashtag, or an empty result if none exists.
Given n network nodes and undirected links between them, return every link whose removal would disconnect some pair of nodes (a bridge). The graph can have up to 100,000 nodes and links.
Implement a bounded single-producer single-consumer ring buffer for passing decoded market data from a feed thread to a strategy thread, and explain exactly which memory ordering each index access needs in C++.
Given heights of vertical walls placed at unit spacing along a data center aisle, choose two walls that, together with the floor, hold the largest volume of water, and return that volume.
For each Meta ad account, compute a trailing 28-day conversion rate (conversions over clicks) for every day, and show why it must be the ratio of rolling sums rather than the average of daily rates. Days without activity must not shrink the window.
Design a SparseVector class built from a dense list of numbers that stores only nonzero entries, and implement dot(other) that returns the dot product with another SparseVector of the same length.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.