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
An investor holds 20 personal loans, each with an independent 8% probability of defaulting over its life. What is the probability that at least one defaults, and how many defaults should the investor expect?
Given a series of mid prices and a tolerance, find the longest contiguous window in which the maximum price minus the minimum price never exceeds the tolerance, returning its length and start index.
Instagram applies a stricter content filter to accounts predicted to belong to teens. A test of a new filter version applies it only to predicted teens, but the age model has errors. Design the experiment and the analysis.
Given a daily_offer_price table with one row per ASIN per day (asin, price_date, price), return every ASIN-day where the price is strictly lower than the lowest price on any of the previous 30 days, only when a full 30 days of history exists.
Using tables of drives (release, autonomous miles, test-track flag), disengagement events (drive, cause) and releases (release date), write SQL that reports disengagements and safety-related disengagements per 1,000 public-road autonomous miles for each release, plus the change versus the previous release.
Tell me about a time you had to allocate a scarce shared resource, such as compute capacity, among several important customers or teams who all needed it urgently. How did you decide?
A competitor has launched a premium travel card with similar benefits and an annual fee \$150 lower than Venture X. Leadership asks whether Capital One should cut its fee. Walk through the case and give a recommendation.
Implement an iterator that takes several possibly lazy activity feeds and yields one item from each in turn, skipping feeds as they run out, with has_next and next methods.
Tell me about a time you inherited a project partway through, with incomplete documentation or unclear commitments. How did you get your footing and deliver?
Tell me about a time a change you made broke something important downstream, such as a report used for regulatory or financial purposes. How did you respond, and what did you change afterward?
Write a tokenizer that turns a raw search box string into a list of terms: plain words, quoted phrases, and operators like site:, filetype:, and intitle:, each possibly negated by a leading minus sign, while tolerating unterminated quotes.
Convert a non-negative integer below 2^31 into its English words representation, such as 1234567 to "One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven".
Meta wants a small language model to run on Ray-Ban Meta glasses or phones for quick replies. Explain how knowledge distillation works for LLMs and the design choices you would make.
Given a Meta Verified subscriptions table with start and end dates, compute for each calendar month the number of subscribers active on the first day, the number who ended during the month, and the monthly churn rate.
A pricing tool logs price edits on a stack. Design `push(x)`, `pop()`, `top()`, `peek_max()`, and `pop_max()` (removing the most recent occurrence of the maximum), with every operation in O(log n) or better.
A row of Google Home controlled lights is given as 0 (off) and 1 (on). One operation toggles exactly k consecutive lights. Return the minimum number of operations to turn every light on, or -1 if impossible.
Design a recommender that picks the next video in a Facebook Watch viewing session, adapting in real time to what the user just watched, skipped, or abandoned. Focus on sequence modeling and low-latency feature updates.
Given a contingency table of reaction counts (Like, Love, Haha, Angry) by country for one week, test whether the reaction mix depends on country and explain how you would report which cells drive the result.
Implement a fixed-capacity cache with get(key) and put(key, value), both in O(1) time. When the cache is full, put evicts the least recently used entry, and both get and put count as a use.
Cars are humped one at a time in a fixed order, each labeled with a destination rank. Each classification track must hold cars in nondecreasing rank from first to last so it can be pulled as an ordered block; return the minimum number of tracks needed and a track assignment for every car.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.