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
A Minecraft player walks across a row of pillars left to right. Stepping down is free; climbing up by d costs d blocks or one ladder. Given block and ladder counts, return the furthest pillar index the player can reach.
Tell me about a time you had a launch date that could not move and more work than time. How did you decide what to cut, and how did you get agreement on it?
Describe a time you found data quality problems in an upstream pipeline you did not own and took responsibility for getting them fixed.
Each log line starts with an identifier followed by space-separated words. Text logs have words made of letters; numeric logs have words made of digits. Return the logs with all text logs first, sorted by content then identifier, followed by numeric logs in their original order.
Describe a time you led a team when a serious defect was found late in validation and the business wanted to keep the ship date. How did you decide what to do, communicate the trade-off, and protect both quality and the team?
Given a follow graph of Pinners, return the minimum number of hops between two users when a connection exists if either follows the other, or -1 if they are not connected. Aim for an approach that stays fast on a graph with hundreds of millions of users.
An advertiser running on Facebook Feed, Instagram Feed, and Instagram Reels sees reach of 4M, 3M, and 2.5M people. They ask how many unique people they reached in total. Explain how Meta would compute this and what affects the answer.
Given each router's static routing table, trace the hop-by-hop path a packet to a destination IP takes from a source router using longest prefix match at each hop, and report whether it is delivered, blackholed, or caught in a forwarding loop (returning the loop).
Implement a transfer service where clients may retry the same request many times, possibly concurrently, and the money must move exactly once. Show the idempotency handling and the locking that keeps balances consistent.
Write a function that takes an IBAN string (possibly with spaces) and returns whether its structure and ISO 13616 mod-97 check digits are valid, without converting the whole string to a big integer.
A teammate reports that a new transaction fraud model is 99.8% accurate. Explain why that number is meaningless here and which evaluation metrics and threshold choice you would use instead.
Design a cache for home screen poster images that holds at most capacity_bytes total, evicts least recently used images until a new one fits, and supports get(key) and put(key, size, data) in O(1) average time.
Tell me about a time you built a product for users whose craft you did not deeply understand, and how you learned enough about their work to make good engineering and product decisions.
Design an ML system that decides, for each learner every day, whether to send a practice reminder, which message template to use and when to send it, so that more learners practice without causing notification fatigue or opt-outs.
Given a list of (ticket_id, text) pairs from a customer's support inbox, group tickets whose text is identical after lowercasing and stripping punctuation and extra whitespace. Return only groups with two or more tickets, ordered by first appearance.
Listed prices for a product family are stored in a binary search tree. Given a customer's budget as a float, return the listed price closest to it, choosing the smaller price on a tie.
Roll two fair six-sided dice. What is the expected value of the larger of the two, and what is the expected value of the smaller?
Design a storage layer for Facebook and Instagram media where the same video uploaded or forwarded by many users is kept only once, while each user's post still has its own permissions and deletion semantics.
Given a sessions table and an events table keyed by session_id, compute the share of Facebook Dating sessions that contain exactly one event, broken down by the entry point that started the session.
After launching a new Google Drive search ranker that won its A/B test on click position, average time spent in Drive search went up 8%. Decide whether this is a good or bad sign and how to find out.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.