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
Using trips and AI safety events tables, write SQL that computes each driver's weekly unsafe events per 1,000 miles for drivers with at least 500 miles that week, and ranks drivers from worst to best within each week.
Given a grid of integers, count how many 3 x 3 contiguous subgrids are magic squares: they contain each number 1 to 9 exactly once and every row, column and both diagonals sum to 15.
After DoorDash updated the DashPass landing page copy, daily DashPass trial signups dropped 12%. How would you determine whether the page change is responsible?
A Prime Day promotion lets a shopper roll a fair die and win that many dollars in credit, with the option to discard the first roll and take a second roll instead. What is the optimal strategy and the expected payout, and what if two re-rolls are allowed?
Using a table of month-end loan snapshots, compute for each investor and month the share of active loans that are 30 or more days delinquent, both by loan count and by unpaid principal balance.
Facebook search returns results from several verticals with separate rankers. Design the system that decides which verticals to show, in what order, and how many results from each, for a given query and user.
A new job search ranking model shows each job seeker more relevant jobs, but job postings compete for a limited pool of applicants. Design an experiment that captures effects on both seekers and job posters without interference bias.
Given a set of tables and edges meaning a downstream table reads from an upstream table, return an order to refresh them so every upstream refreshes first, breaking ties alphabetically. If dependencies contain a cycle, return the tables that can never refresh.
Given a string from a login audit log, return 'IPv4' if it is a valid dotted IPv4 address, 'IPv6' if it is a valid full-form IPv6 address with eight hex groups, and 'Neither' otherwise.
Design a class that records emote uses as (timestamp, emote) events and answers `top_k(now, k)`, the k most used emotes in the last `window` seconds, with ties broken alphabetically.
Instagram Stories disappear 24 hours after posting. Refactor a story store so its expiry logic can be unit tested without sleeping, and write tests that pin down the exact boundary behavior.
This morning the dashboard shows median pickup ETA up 25% in eight cities at once, starting at midnight UTC. How do you figure out what happened?
A model does not fit in accelerator memory during training because of stored activations; explain activation (gradient) checkpointing, estimate its memory savings and compute overhead, and compare it with other memory-saving options.
Tell me about a time your analysis contradicted the hypothesis of a senior leader, such as a partner or executive, and how you handled it.
Capital One tests a tighter card-not-present fraud rule on a random half of accounts. Fraud losses drop in treatment but rise in control. Explain what is happening and how to estimate the true effect of launching the rule.
Implement an evaluator for integer arithmetic expressions typed into a search box calculator, supporting +, -, *, / (truncating toward zero), parentheses, unary plus and minus, and whitespace, and reporting syntax errors and division by zero.
The weekly InMail response rate for recruiters dropped from 22% to 18% over two weeks. Walk through how you would find the cause.
Given signups and daily activity for an Android app, produce a table with weekly signup cohorts as rows and Day-1, Day-7, and Day-30 retention as columns, leaving cells blank where the cohort is too recent to measure.
Each character in a list is a pickup at a restaurant. A courier completes one pickup or idles per minute, and two pickups at the same restaurant must be at least n minutes apart. Return the minimum minutes to finish all pickups.
Given a singly linked list of stops L0 -> L1 -> ... -> Ln, reorder it in place to L0 -> Ln -> L1 -> Ln-1 -> ..., for example to alternate a courier between nearby and far drop-offs. Return nothing; modify the list.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.