Discuss
Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.
-
Yahoo: Convert between units through known ratios
Problem. You are given conversion facts such as feet to inches and inches to centimetres. Answer queries that convert a value from one unit to another, even when there is no direct
-
Apple: Roll out replica updates evenly while keeping groups healthy
Problem. The round was built around a replica management system. There is a replica class with fields such as region, id and the replica group it belongs to, plus APIs to check whe
-
LinkedIn: Top-K most and least frequent exceptions in a time window
Problem. A service throws exceptions. Design a system that tracks them and can report the top K most frequent and the top K least frequent exceptions within a sliding time window,
-
Uber: Circuit breaker that trips on request volume, not errors
Problem. Implement a circuit breaker. The twist is that the requirements read more like a rate limiter: the breaker opens based on how many requests come through, not on how many o
-
Netflix: Count pairs of numbers that are rotations of each other
Problem. Given an array of integers, count how many pairs are cyclic rotations of one another, meaning one number's digits can be rotated to produce the other. Example. 546, 654 an
-
Roblox: Randomly split an array into non-empty segments
Problem. Split an integer array into a given number of subarrays by choosing elements at random, so that each element is equally likely to end up in any subarray. Every subarray mu
-
Apple: Sum a long iterator's values, then split the work across two threads
Problem. You are handed a custom iterator over long values. Internally it starts at 0, stops at one million, reports whether more values remain, and returns the next incremented va
-
Capital One: Reply threads for a team chat app
Problem. Design the backend for message threads in a team chat app. A user can reply to one message in a channel, and the replies live in a side thread so the main channel feed sta
-
Waymo: Split a bag of integers into groups, with tightening rules
Problem. You get a multiset of integers. The task grows in three stages: 1. Split them into groups where every value in a group is the same. 2. Split them into groups of exactly 5
-
Zepto: Chess game: classes, move validation, schema and REST APIs
Problem. Design a chess game across three layers: classes, database schema and APIs. Classes. Player, Board, Piece, Move, Game and Position. King, Queen, Bishop, Knight, Rook and P
-
BlackRock: Design a cache that supports LRU and LFU eviction
Problem. Design a cache system for an Associate level C++ role. Follow up. How would you implement LRU evict the least recently used entry and LFU evict the least frequently used e
-
Reddit: Hide a comment and its whole subtree when it matches an unwanted topic
Problem. You receive a dictionary of comments. Each comment has an id , a parent comment link, a body , and two flags, cat and dog , marking what it discusses. The parent links mak
-
Stripe: Cheapest way to ship packages under weight and volume limits
Problem. A three part shipping cost calculator. Part 1. You have packages with weights and ships that each have a weight limit and a fixed cost. Find the minimum total cost to ship
-
Teradata: O(1) insert, delete and get-random, then allow duplicates
Problem. Design a data structure that supports insert, delete, search and returning a random element, each in average O 1 time. No duplicates at first. Follow ups. If you cannot us
-
Indeed: Data model for movie streaming and reviews
Problem. For a movie streaming product that also produces reviews, design the fact tables and the derived tables built from them. What was asked. Choose the facts to capture for ex
-
Rippling: Key-value store with begin, commit and rollback
Problem. Implement an in memory store for string keys and values with add, get and delete. Follow up. Add transaction support with begin, commit and rollback. Gets, puts and delete
-
Scale AI: Debug an LLM service that returns no output
Problem. You are handed a small codebase, roughly 150 to 200 lines, that calls a model but never returns its output. Find out why. What the candidate found. The bug sat in the prom
-
OpenAI: Assign tasks to humans and AI under a list of rules
Problem. Build a system that assigns tasks to a mix of human workers and AI agents. Every assignment must satisfy a given list of requirements. What made it hard. The candidate sai
-
OpenAI: Iterator that extends to 2D, 3D and async
Problem. Implement an iterator over a collection. Then extend it step by step: iterate a 2D structure, then a 3D one, then make an async version. What mattered. The candidate, who
-
Scale AI: Design an LLM agent backend for insurance claims
Problem. Design the backend for an agent that takes in insurance claims and makes decisions on them. Areas the interviewer wanted covered. Retrieval augmented generation to pull th