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
Instagram photo upload sizes look log-normal. From a sample of 2,000 uploads you have the mean and standard deviation of log size. Estimate the mean upload size, compare the plug-in log-normal estimator with the plain sample mean, and explain when each is better.
Design the service that tells Nike App and Nike.com shoppers which nearby Nike stores have a given style and size available for same-day pickup, and that reserves the unit when they place a pickup order.
Implement a bounded blocking queue between a market data feed thread and a consumer thread, supporting put and get with timeouts and a clean shutdown.
Messages in a conversation form a tree (editing a prompt or regenerating an answer creates a sibling branch). Given messages with id, parent and creation time, plus the user's explicit branch selections, return the ids along the thread the UI should display, from root to leaf.
Tell me about a time you had to persuade your team to drop or scale back something you had previously pushed for. How did you handle changing your own position?
Design the notification side of an alerting system: when metric or log alert rules fire for Azure resources, group related alerts, suppress duplicates, route them to email, SMS, webhooks and on-call tools, and escalate if nobody acknowledges.
Riot IDs have the form GameName#TagLine. Given a list of submitted IDs, group the ones that would collide after normalizing case, Unicode width and extra whitespace, and return only the groups with more than one member.
Design the service that tracks how many resources each AWS account uses against its quotas (for example running vCPUs or Elastic IPs per region), rejects creates over the limit, and lets customers request increases.
A knight starts at (0, 0) on an infinite chessboard. Return the minimum number of knight moves needed to reach (x, y).
Given weekly activity rows (user_id, app) where app is Facebook, Instagram, WhatsApp or Messenger, compute the share of weekly users in each exact app combination (for example 'Facebook+Instagram'), plus a matrix of pairwise overlap: for app A, the share of A users who also use B.
Describe a time you discovered that a system you owned gave users incorrect information, such as an assistant answering a parental-leave question with an outdated policy, and walk through how you handled the fix and the communication.
Given a list of transaction IDs from a mainframe batch feed and an integer k, return the indices where an ID repeats an earlier occurrence that is at most k positions back.
An EV drives a circular route of n charging stations; station i provides charge[i] kWh and driving to the next station costs cost[i] kWh. Return the unique starting station from which the car can complete the loop with an initially empty battery, or -1 if impossible.
Given statin fills (member_id, fill_date, days_supply), merge overlapping or touching supply periods into continuous therapy episodes per member, then list every gap between episodes longer than 30 days with its start date and length.
Cresta's AI Agent now handles a share of a bank's inbound calls end to end and hands off to humans when needed. As the PM, define the metric framework you would use to decide whether to expand it to more call types.
Given a chronological stream of fills (symbol, side, quantity, price), maintain each symbol's net position, average entry price and realized PnL, correctly handling trades that reduce, close or flip a position from long to short.
Given an m x n binary image, count the axis-aligned rectangles whose four corner cells are all 1, where corners must be on distinct rows and distinct columns.
A package becomes ready at a fulfillment center at a given minute; trucks between fulfillment centers, sort centers and delivery camps leave only at scheduled departure times and take a fixed duration, and each node needs some handling minutes before a package can leave. Compute the earliest minute the package can reach a target camp.
Design the backend that lets PhonePe users send UPI payments through NPCI to remitter and beneficiary banks, including how the system handles timeouts, pending states, reversals and reconciliation at festival-day peak traffic.
When many requests miss the cache for the same key at once, ensure only one of them loads from the backend while the rest wait and share the result, including errors.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.