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
Orders arrive in time order, each with a restaurant and a customer location on a grid. Assign each order to the free delivery partner closest to the restaurant (ties by id); if nobody is free, wait for the earliest partner to finish, and report every order's pickup and delivery time.
Implement a single-rate two-color policer configured with a committed information rate in bits per second and a burst size in bytes, where offer(size, now) returns conform or exceed and must be safe to call from multiple threads.
A monthly interest job computes round(balance * apr / 12, 2) with Python floats and customer statements are off by a cent on some accounts; find the cause, fix it, and write tests that would have caught it.
Write a function that takes an IBAN string (possibly with spaces) and returns whether it passes the ISO 13616 mod-97 check. Do it without converting the whole rearranged string into one big integer.
Totes sit on a straight conveyor, each with a signed size: positive moves right, negative moves left, all at the same speed. When two totes meet the smaller one is diverted off the belt, equal sizes are both diverted, and the larger continues. Return the totes remaining after all collisions, in order.
Raw features such as dollar volume, volatility and price momentum drift over years and differ across stocks. How would you transform them so a single model generalizes across time and the cross-section, without leaking future information?
Given a task graph for a monorepo (each task has input files and dependency tasks), current file content hashes and a set of hashes already in a remote cache, compute every task's hash and return the tasks that must actually run, in dependency order.
Given a string, return the shortest substring p such that the string is p repeated a whole number of times (for example "abc" for "abcabcabc"), or the string itself if no shorter unit exists, in linear time.
Design a key-value map with set, delete, snap and get(key, snap_id), where snap returns an id and get returns the value a key had when that snapshot was taken.
A roll of packing film of a given length must be cut at a set of marked positions, in any order; each cut costs the current length of the piece being cut. Return the minimum total cost.
Given the old and new text of a configuration file, output a line-by-line diff where unchanged lines are prefixed with two spaces, removed lines with "- ", and added lines with "+ ", using the fewest possible added and removed lines.
Each conversation turn has a token count and a flag saying whether it is a tool call. Find the longest contiguous run of turns whose total tokens fit in a budget and that contains at most k tool calls, returning its length and start index.
An observational analysis estimates that posting a WhatsApp Status at least weekly is associated with a risk ratio of 1.4 for staying active at 6 months, after adjusting for known covariates. A skeptic says there must be unmeasured confounding. Quantify how strong it would have to be to explain away the result.
Given a list of (member_id, skills) pairs where skills is a list of free-text strings, group the member ids whose skill sets are identical after trimming whitespace, lowercasing, and ignoring order and duplicates. Return only groups with at least two members.
An agent procedure is a directed graph of steps (each step lists its possible next steps, steps with none are terminal). Given the graph and a start step, return steps that can never be reached, reachable steps from which no terminal step can be reached, and steps that are referenced but never defined.
A voice activity detector emits unsorted (start_ms, end_ms) speech segments for the caller; merge segments separated by a gap of at most gap_ms into single speaking turns.
Each rider in a shared ride request can walk to any point within an interval [left, right] on a street. Choose the fewest pickup points so that every rider's interval contains at least one point, and return the points chosen.
Tell me about a time you tracked down a defect where it was unclear at first whether the fault was in hardware, firmware, the driver or the application.
Each account lists identifiers such as device fingerprints, phone numbers and emails. Two accounts are linked if they share any identifier, directly or through a chain of other accounts. Return every linked cluster of two or more accounts, largest first.
Tell me about a time leadership asked your team to take on another team's project or system and you disagreed with how it was planned. What did you do?
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.