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
New Facebook users move weekly between Signed Up, Added Friends and Posted, and eventually become Retained Active or Churned. Given the transition probabilities, compute the probability each starting state ends in Retained Active and the expected weeks until that outcome is decided.
Tell me about a time an independent reviewer, such as a model validation or risk team, raised a finding on your work that you believed was wrong. How did you handle the disagreement?
A driver sees scheduled trip offers, each with a start time, end time and payout; accepting trips that overlap is not allowed. Return the maximum total payout the driver can earn.
Design a KV cache layer for an LLM inference service that reuses attention key and value tensors for repeated prompt prefixes across requests and across replicas, to cut time-to-first-token and raise throughput.
Describe a time you took a significant action without explicit approval because waiting for sign-off would have caused harm, and how you handled the aftermath.
Design an over-the-air update system that ships new firmware to millions of gateways and dash cams in stages, verifies integrity, pauses automatically on regressions, and never leaves a device unable to boot or report.
Implement an iterator that takes several iterables and yields one item from each in turn, skipping sources that are exhausted, until all are done.
Implement a read-write lock that allows many concurrent readers or one writer, and prevents writers from starving when reads are continuous.
Tell me about a time you discovered your product assumed one user per device, when many users actually shared, and what you did about it.
Explain what the key-value cache does during autoregressive decoding, compute its memory footprint for a 32-layer model with a 4,096-dimensional hidden state, and describe techniques that shrink it.
Given a sequence of engagement scores, return True if there exist indices i < j < k with scores[i] < scores[k] < scores[j], meaning a low point, then a peak, then a value between them.
You compare average comment length between Instagram iOS users (n = 40, sd = 30 characters) and Android users (n = 200, sd = 12 characters). Explain why the pooled-variance t-test misleads here and compute the Welch test instead.
Messenger is end-to-end encrypted, and the team wants to test a new smart reply feature. Design the experiment's metrics when the server cannot see message text.
An org chart is a rooted tree where each manager has any number of reports. Return the number of edges on the longest path between any two people, which may or may not pass through the CEO.
Tell me about a time you raised a concern about how something you were building could affect people other than your target users, such as privacy, safety, or community impact. What did you do?
Given an orders table (order id, algo, side, order quantity, arrival mid) and a fills table (order id, fill quantity, fill price), write SQL that reports, per algorithm, the order count, notional-weighted and simple average slippage versus arrival in basis points (positive meaning cost), and the fill rate.
Tell me about a time a system you owned broke in a way that hurt a customer, how you communicated while it was still unfolding, and what you changed afterward.
Given a session's click log as a string of single-character event codes and a length L, return every length-L sequence of events that occurs more than once in the log.
Many customers start a Prime free trial and cancel before it converts to paid. Propose product changes to help new members get value in their first 30 days.
Design the request and response contract for an endpoint that lets advertisers on ByteDance's ad platform register up to 100 creative assets in one call, where some items may be invalid or fail transiently, and the client may retry the whole request.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.