Practice questions for 300+ companies, plus questions candidates reported from their interviews.
11,534 questions · 341 companies · 1,080 reported by candidates
Showing 11,534 results
Gift bundles at Amazon are displayed as a binary tree of item IDs. Return True if the tree is symmetric around its root, meaning the left subtree is a mirror image of the right subtree.
Tell me about a time you believed a committed launch date put reliability or customers at risk. How did you raise it, what did you propose, and what happened?
Given a list of ad request latencies and a window size k, return the median latency of every window of k consecutive requests.
Design an ML system that drafts a personal injury demand letter from extracted case facts and source documents, where every factual claim in the draft cites a source page and unsupported claims are caught before an attorney sees the draft.
Tell me about a project whose value was hard to measure, such as infrastructure, tooling, or a quality improvement, and how you demonstrated its impact.
Design and implement a newest-first comments endpoint that returns pages with an opaque cursor, so clients never see duplicates or skip comments even when new comments arrive while they scroll.
The Facebook Events team reports daily active users of Events as its main metric. Most people look at Events a few times a month. Is DAU the right metric, and what would you propose?
Using an Instagram follows table, compute for each day the share of new follows that were reciprocated (the followee followed the follower back) within 48 hours.
Given wallet_txns(wallet_id, txn_id, created_at, amount_cents) with signed amounts, compute each wallet's running balance and return the first transaction that pushed it below zero.
Implement a renderer for document templates containing tags like {{signer.name}} or {{company.address|Not provided}}, resolving dotted paths (including list indexes) against a nested data object, using the default when present and raising an error otherwise.
Given a trunk allowed-VLAN string such as "10-20,15,30-25,5", return the canonical compressed form with sorted, merged, non-overlapping ranges, and reject VLAN IDs outside 1 to 4094.
A user-randomized test adds one more ad slot per Facebook feed session for treated users. Revenue per treated user rises 4 percent. Explain why the auction makes this estimate misleading for a full launch and how you would measure the market-level revenue effect.
Design the settings system that lets users choose which notification types they receive on which channels, plus quiet hours, and that every notification sender must check before delivery.
Implement a fixed-capacity cache supporting get and put where every entry carries its own time-to-live; expired entries must never be returned, and when the cache is full it should drop expired entries before evicting the least recently used one.
Given a principal, an annual interest rate and a term in months, produce the monthly schedule of payment, interest, principal and remaining balance for a fixed-rate mortgage. Every amount must be rounded to cents and the loan must end at exactly zero.
An m by n map starts as all water. A sequence of positions is turned into land one at a time. After each addition, return the number of islands, where an island is a group of land cells connected horizontally or vertically.
Each audit entry stores prev_hash, actor, action, timestamp and its own SHA-256 hash over those fields. Write a function that returns the index of the first entry that breaks the chain, or -1 if the log is intact.
Google Business Profile is free. Leadership is considering a paid verified badge for local businesses on Maps and Search. Would you recommend it?
As a product manager, describe a time large enterprise customers demanded features that would delay improvements for the much larger base of smaller users. How did you prioritize?
Design the system that computes what each eligible creator earned from Facebook and Instagram monetization programs each month and pays them in their local currency through bank transfer or other payout rails.
Get the full picture with our company interview guides.