Discuss
Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.
-
Cohesity: Design a key-value store, then code consistent hashing in 10 minutes
Problem. Design a key value storage system. Then, within about 10 minutes, implement consistent hashing for it. Context. This came after a first round where the candidate built a k
-
Rippling: Rule engine that validates expenses against configurable rules
Problem. You get a list of expenses and a set of rules. Build an engine that checks every expense against the rules and reports which ones break which rule. What is judged. New rul
-
Groww: Auto square-off service for intraday positions on price thresholds
Problem. Design a risk service that automatically closes a user's intraday position once the price moves a set percentage away from the previous day's close. Example: a stock close
-
Rippling: Article voting with the last K flipped articles
Problem. Build an article store where users can upvote and downvote articles. Also support a query that returns the last K articles whose vote state flipped. What is judged. The da
-
Cohesity: Append a 100 GB file to another 100 GB file
Problem. You have two files of 100 GB each. Append one to the end of the other. What the candidate discussed. Read the source in chunks sized to the RAM you have, and write each ch
-
Tekion: Longest run of ones if you can flip up to k zeros
Problem. Given a binary array and a number k, find the longest stretch of consecutive 1s you can get if you are allowed to flip at most k 0s to 1s. What happened. It was the second
-
BharatPe: Notification system with priorities and bursts
Problem. Design a system that sends notifications to users. What was probed. The trade offs in your design choices. How priority notifications get through ahead of normal ones. Wha
-
CRED: Flight booking with per-seat pricing and no double sale across resellers
Problem. In a two hour onsite, lead the design of a flight booking platform from scratch. Areas covered. 1. Functional and non functional requirements, scope and assumptions 2. Dom
-
Uber: In-memory shell with mkdir, cd, ls and pwd
Problem. Implement the core of a Linux style file system shell in memory, supporting commands such as mkdir to create a directory, cd to move between directories, ls to list conten
-
Google: Earliest live timestamp in a deduplicated message stream
Problem. Messages arrive one by one, each carrying a timestamp. A message stays valid for 10 seconds after its timestamp. If the same message shows up again while an earlier copy i
-
Google: Count the ways to spell a word using chemical element symbols
Problem. You get the periodic table, meaning the set of element symbols one or two letters, such as H, C, Si, Cs , and a single word. Count how many different ways the word can be
-
Amazon: File search utility with composable AND/OR filters
Problem. Design a command line file search tool. A user should be able to search files by attributes such as name, size and extension, and should be able to build more complex quer
-
Publicis Sapient: Big spenders in a given month, at scale
Problem. Write a SQL query that returns users whose purchases in a chosen month of the previous year add up to more than 10,000. Follow ups in the same section. Write the equivalen
-
Cloudflare: Fewest partitions to hold all data
Problem. You get a list of partition sizes and a list of how much data is in use. Data can be split into chunks across partitions. Return the minimum number of partitions needed to
-
Cloudflare: Ship logs from edge data centers to a core data center
Problem. Several edge data centers produce logs. Design a pipeline that moves them to one core data center and lands them in a central store that can be queried. Requirements given
-
Rippling: Settle balances from a list of payments
Problem. You get transactions of the form from, to, amount . Work out each person's net balance and print who should pay whom and how much to settle up. The minimum number of payme
-
Coupang: Count subsequence matches with no two adjacent picks
Problem. Given a source pattern and a target string, count the ways to pick characters of the target, in order, that spell the source, with the rule that two neighbouring character
-
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
-
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
-
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