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
Design an ML system that predicts how long a restaurant will take to prepare each order at the moment it is placed, so rider assignment can send a delivery partner who arrives just as the food is ready.
Driver phones send GPS pings as (timestamp, lat, lng). Wrap a ping iterator in a class with peek(), next() and has_next() that skips any ping whose rounded position equals the previous emitted ping's position, so consumers only see real movement.
Given a sorted array of event IDs, remove extra duplicates in place so that each ID appears at most twice, and return the new length.
After Facebook Marketplace launched a more prominent price range filter, buyer messages per listing view dropped 7%, but messages per buyer stayed flat. Is the filter hurting Marketplace?
Design an LLM system that helps AppleCare advisors answer customer questions by retrieving from support articles, repair policies and device diagnostics, and drafting a grounded reply with citations.
Design a store with set(key, value, timestamp) and get(key, timestamp) that returns the value whose set time is the largest one not exceeding the query time, or an empty string if none exists. Timestamps for a given key are set in increasing order.
Describe a time you led a team whose delivery milestone was going to be missed on a large migration or modernization program, with the client already unhappy. What did you do, and how did it end?
WhatsApp Business is used by small merchants to talk to customers. Define a metric that shows whether merchants are getting business value, not just sending messages.
Tell me about a time a peer on another team kept missing commitments your work depended on, and what you did.
People stand in a line facing right with distinct heights. Person i can see person j > i if everyone between them is shorter than both; return how many people each person can see.
The CEO of a 3,000-person logistics company hands you a list of eight AI ideas (a customer chatbot, automated freight quoting, invoice processing, a sales email writer, and more) and wants a plan in two weeks. How do you pick the first engagement and define what success means?
Estimate how many 8xH100 nodes are needed to serve a 70B dense model in FP8 at 50 requests per second, with 1,000 prompt tokens and 300 output tokens per request, while giving each user at least 30 output tokens per second.
A planogram grid assigns a SKU code to each shelf slot. Return True if every top-left to bottom-right diagonal contains a single repeated SKU, which is how a cascading display layout is defined.
Given a page-range string from a print dialog such as "1-3, 5, 7-9" plus the document's page count, return the sorted list of distinct pages to print, supporting open-ended ranges like "-2" and "18-" and clamping to the document.
Return every arrangement of n queens on an n by n board such that no two queens share a row, column or diagonal, with each board shown as a list of strings.
A mid-size bank on a modern core banking platform wants to cut drop-off in its mobile savings account opening flow, which currently converts 22% of starts to funded accounts; as product manager, decide what to build in the next two quarters.
Given an array of reaction counts for a post, move every zero to the end while keeping the relative order of the nonzero counts. Do it in place with O(1) extra space.
From per-session time spent records, compute for each week the median across users of their average daily minutes on the Facebook app, counting only days the user was active. Report the 90th percentile as well.
Each frame of a drive log has a usefulness score that may be negative. Choose a non-empty subsequence of frames in order so that consecutive chosen frames are at most k indices apart, maximizing the total score.
Given a dictionary of words with frequencies and a sequence of phone keypad digits typed so far, return the top three words whose keypad encoding starts with that digit sequence, ranked by frequency.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.