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 an array of cart item prices and a coupon threshold T, count the number of index pairs (i < j) whose prices add up to exactly T. Prices may repeat.
Given an arithmetic formula string with non-negative integers, +, -, *, /, parentheses, spaces, and unary minus (for example -(2+3)*4), evaluate it with standard precedence and integer division truncating toward zero, without using eval.
Your model predicts the probability that an ad impression leads to an app install, and the bidder uses that probability to set bids. Offline AUC looks great but campaigns overspend. Explain why calibration matters here, how you would measure it and how you would fix it.
Implement render(template, ctx) that replaces placeholders like {{customer.name}} or {{orders.1.id}} with values from a nested dict and list context. Raise a clear error for missing paths and for unclosed or empty placeholders.
Design the backend that gives every user project its own Linux container with a persistent filesystem, starting it within seconds when the user opens the workspace and reclaiming it when they leave, at a scale of millions of projects and hundreds of thousands concurrently running.
You are building an automated reviewer that scores every AI support conversation for policy compliance and resolution quality. Explain how you would design the judge, measure its agreement with human QA reviewers, and decide where its scores can be trusted.
Given executable FX conversion rates between currencies (after fees), determine whether some cycle of conversions returns more than you started with, and if so return one such cycle.
Given a grid of letters and a list of dictionary words, return every word that can be traced through horizontally or vertically adjacent cells without reusing a cell within one word.
Tell me about a time a product manager pushed to launch without completing a required review step, and how you handled that disagreement.
After a Feed ranking update that favored posts from friends and groups, organic reach for small business Facebook Pages fell 15% and some businesses increased ad spend. How do you evaluate whether this is a problem for Meta?
Describe a time you believed leadership was steering by the wrong metric and you, as an individual contributor, persuaded them to change it.
A stay's price breakdown has fractional amounts (nightly rates after discounts, fees, taxes) that must be shown as whole dollars, and the displayed lines must add up exactly to the rounded total charged. Round each line to its floor or ceiling so the sum equals the target and the total absolute rounding error is minimized, or report that it is impossible.
Given positive per-hop slowdown factors along a request path and a limit, count the contiguous segments whose product of factors is strictly less than the limit.
You trained a new home feed ranking model that predicts the probability a user saves a Pin. Which offline metrics would you use to compare it with production before an online test, and why?
Instagram wants to switch video encoding to a more efficient codec to cut bandwidth costs, and needs to show user engagement is not meaningfully worse. Design the test as a non-inferiority experiment.
Given an m by n matrix of pixel values, return all values in clockwise spiral order starting from the top-left corner, as a progressive image loader might fetch them from the outside in.
Search ranking must balance relevance, predicted conversion, delivery speed and long-term customer trust. Explain how you would combine multiple model outputs into one ranking and how you would set the weights.
An ads feature uses each ad's historical click-through rate, but new ads with 2 impressions and 1 click show a CTR of 50%. Explain why this overfits and implement empirical Bayes shrinkage with a Beta prior fitted to all ads.
Design the batch platform that each evening revalues every trading position under hundreds of historical and stress scenarios, aggregates VaR and stress losses along desk, legal entity and counterparty hierarchies, and delivers reports to risk managers and regulators by early morning.
Tell me about a time you had to get a decision from a senior executive with very limited time. How did you prepare, and how did you influence the outcome?
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.