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 BST stores distinct creator follower counts. Return the minimum difference between any two values in the tree.
Given a 0/1 occupancy grid where 1 is an obstacle, find the fewest 4-directional moves from the top-left to the bottom-right cell if the robot may pass through at most k obstacle cells, or return -1.
Build a checker that receives the characters of a live comment one at a time and, after each character, returns True if the text received so far ends with any word from a fixed banned list.
Given open team-purchase groups (creation time, required size, leader) and a time-ordered stream of join events, return which groups completed and when, and which groups failed because the 24-hour window expired.
Analysts reviewed a random sample of 400 messages that a new detector quarantined last week and confirmed 388 were malicious. Give a 95% confidence interval for the detector's precision, explain which interval you chose, and say how large a sample you need for a margin of plus or minus one percentage point.
Flipkart wants a model that flags risky cash on delivery orders (likely to be refused or fraudulent) so they can be switched to prepaid only. Fraud is about 1% of COD orders. How would you evaluate the model and choose its operating threshold?
Design an AI system that reads inbound homeowner emails to a mortgage servicer, classifies intent, gathers the relevant loan facts, drafts a compliant reply, and decides when a human must review or take over.
Given pay periods with the date each was paid and a history of salary changes that each have an effective date and an entered-on date, compute for every already-paid period what was paid, what is actually owed today, and the total retro adjustment.
You test a new search ranking model with a user-level 50/50 split, and treatment shows +3% bookings. Explain why this estimate may be biased in a two-sided marketplace with limited inventory, and design an experiment that measures the true effect of launching to everyone.
Given synonym pairs where synonymy is transitive, and a search query of space-separated words, return every rewrite of the query obtained by replacing each word with any word in its synonym class, in sorted order.
Applicants upload pay stubs and offer letters to verify income. Design how you would use a multimodal LLM to extract employer, pay period and gross pay, and explain how you would evaluate accuracy and guard against errors and manipulation.
Each utterance in a call is tagged with at most one compliance step label (or none). Given a required ordered list of steps, return the shortest contiguous range of utterances that contains the steps as a subsequence, or report that none exists.
Given a time-ordered stream of wire transfers (timestamp, sender, beneficiary, amount), return the indices of transfers that repeat the same sender, beneficiary and amount within W seconds of an earlier matching wire.
Given the ordered sequence of stop ids a shuttle visits and a multiset of required stop ids (some required more than once), return the start and end indices of the shortest contiguous stretch that covers every requirement, or (-1, -1) if none exists.
Given an ordered list of redirect rules from a project config (source path, destination path, permanent flag), return the final path a request lands on and the status codes of each hop, or report an error if the rules form a loop or exceed a hop limit.
Meta Quest headsets report battery level only when it changes or every few minutes. Write a Python function that treats the readings as a step function and returns the time-weighted average battery level over a given time window.
Given each teammate's busy intervals for a workday, return every block when nobody is busy that is at least a minimum length, so a team can schedule focus time or a working session.
Given several ordered sources (for example Outlook, Teams and SharePoint activity lists), build an iterator that returns one item from each non-empty source in turn until all sources are exhausted.
Write a function that applies per-field masking rules to records before they leave a secure zone: drop some fields, keep the last four digits of SSNs, keep only the email domain, and replace member ids with deterministic tokens so joins still work.
Tell me about a time you were asked for a delivery estimate on work with many unknowns, and how you gave one you could stand behind.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.