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 a list of unique search terms, return all ordered index pairs (i, j), i != j, such that terms[i] + terms[j] is a palindrome.
Each log line is an identifier followed by a space-separated body; text logs have words in the body and numeric logs have only digits. Return the logs with all text logs first, sorted by body and then identifier, followed by numeric logs in their original order.
A loan each month is Current, 30 days past due, or 60+ days past due, and eventually ends Paid Off or Defaulted. Given monthly roll rates (Current: 93% stay, 3% to 30 DPD, 4% pay off; 30 DPD: 60% cure, 40% to 60+; 60+: 20% cure, 80% default), find the probability a current loan eventually defaults and its expected remaining life in months.
Given available VM memory sizes and a target capacity, choose three different VMs whose total memory is as close as possible to the target and return that total.
Design a multi-tenant, per-token priced inference service that serves dozens of open models (from 8B to 400B+ parameters) plus customer LoRA adapters, meeting latency targets while keeping GPU utilization high.
There are n rooms numbered 0 to n-1 and meetings with distinct start times. Each meeting takes the lowest-numbered free room; if none is free it is delayed until the earliest room frees (keeping its duration). Return the room that hosted the most meetings, lowest number on ties.
Given a multiset of Story frame numbers and a group size w, split them into groups of w consecutive numbers each, or return an empty list if that is impossible.
Design the backend that ingests location pings from millions of phones, turns them into live road speeds, and returns ETAs for routes in Google Maps.
For each country, find the Marketplace category that held the top spot by daily GMV for the longest unbroken run of days, returning the category, run start, run end and length.
Implement a routing table that supports insert(prefix, next_hop), delete(prefix), and lookup(ip) returning the next hop of the most specific matching prefix, including a default route.
A grid of 0s (water) and 1s (land) contains exactly one island with no lakes inside. Return the island's perimeter, counting each unit edge between land and water or the grid border.
A desk is offered block trade opportunities, each with a start time, end time, and expected edge, and can only work one at a time. Choose a set of non overlapping opportunities that maximizes total edge and return both the total and the chosen blocks.
Product wants to move the 'Request a tour' button above the fold on home detail pages. Design the experiment, choose metrics, and explain how you would handle the fact that buyers in both arms compete for the same agents and tour slots.
Given a time-sorted stream of vehicle positions and a polygon geofence, emit enter and exit events, but only after the vehicle has stayed on the new side for a configurable number of consecutive pings, using the first ping of that run as the event time.
Your new product recommendation model improved offline recall@10 by 8% on historical logs, but an online A/B test showed no change in purchases. What are the likely reasons, and how would you investigate?
A toxicity classifier scores YouTube comments. Product wants to auto-remove some, send some to human review, and leave the rest. Explain how to choose the two thresholds given reviewer capacity and error costs.
Two search backends each return a sorted list of document IDs that may contain repeats. Merge them into one sorted list in which every ID appears exactly once.
Given a daily stats table of views per video, return each creator's top three videos by total views over the last seven complete days, handling ties sensibly.
Implement an update step for a 2D occupancy grid: for each lidar return from the sensor cell, mark the cells along the ray as more likely free and the endpoint as more likely occupied, using log-odds with clamping and treating out-of-range returns as misses.
Explain how team-draft interleaving compares two ranking algorithms, why it needs far less traffic than an A/B test, and when you would still need an A/B test.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.