Discuss
Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.
-
Optiver: Multicore overheat controller simulation
Problem. Simulate a firmware thermal controller for a multicore processor. You get a passive cooling capacity shared by the chip, an active cooling capacity per core, a list of cor
-
Nutanix: Hit counter with bursty timestamps, fixed memory and concurrency
Problem. Build a hit counter that records hits with timestamps and reports how many hits happened within a recent time window. This is the usual "hits in the last N seconds" style.
-
Teradata: Design a RAG system over internal company data
Role. Cloud AI engineer, candidate with about two years of experience. Problem. Design a retrieval augmented generation system that answers questions over an organisation's interna
-
Nvidia: Hash-partition an array on the GPU and return partition offsets
Problem. You get an input array and a partition count P . Hash each element into one of the P partitions, lay the elements out on the GPU so that every partition is contiguous, and
-
Palantir: Total portfolio value per day with missing prices carried forward
Problem. You get several companies, each with a list of day, price pairs. Produce, for every day that appears anywhere in the input, the sum of all companies' prices on that day. W
-
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
-
MongoDB: Read-write lock that does not starve writers
Problem. Write a read write lock by hand. Many readers may hold it at once, but a writer needs exclusive access. Once the basic version works, change it so a steady stream of reade
-
DoorDash: Courier pay from overlapping deliveries, then peak-window multipliers
Problem. Compute a courier's pay from a log of their deliveries. Deliveries can overlap in time, and pay depends on how many deliveries are active during each stretch of time. The
-
MongoDB: Union iterator over two sorted iterators
Problem. Write a class that takes two iterators, each yielding strictly increasing values, and itself exposes hasNext and next . It must produce the union of both inputs in strictl
-
Affirm: Card game simulation that scales from two players to N
Problem. Shuffle a standard 52 card deck and split it into piles, one per player. Each round, players compare their top cards; the player with the higher card takes both and sets t
-
DoorDash: Donation service with reliable payments and duplicate protection
Prompt. Design a donation service. Users give money to causes, payments go through a payment processor, and the payouts to recipients must be tracked. Areas the interviewer pushed
-
Instacart: Cheapest cart total given percent-off and buy-x-get-y-free discounts
Problem. You are given a transaction the items being bought and a set of available discounts. Discounts come in two kinds: a percentage off, and buy x get y free deals. Return the
-
Reddit: Grid word search where the path must keep one fixed direction
Problem. Given a grid of letters and a word, decide whether the word appears in the grid. The rule that sank the candidate: once the word starts, every following letter has to cont
-
Pinterest: Fewest subsequences of a source string needed to build a target
Problem. You get a source string and a target string. You may only take subsequences of the source delete characters, keep the order and join them together. Part 1. Decide whether
-
Pinterest: Typeahead service that starts small but can grow
Prompt. Design a typeahead search autocomplete service. The interviewer wanted a design suited to a modest starting scale that can still grow as demand increases. Candidate's direc
-
Snowflake: Web crawler: fewest clicks between pages, then the actual path
Problem. You have a helper, get all links page , that returns the outgoing links of a page. Given a start page and a target page, return the minimum number of clicks needed to get
-
Lyft: One-to-one messenger with offline push, multi-device sync and paged history
Prompt. Design a messaging service that supports only one to one chats no groups . The interviewer added extra requirements as the discussion went on. Follow ups the interviewer pu
-
Freshworks: O(1) LFU cache with recency as the tie-breaker
Problem. Implement a least frequently used cache with get key and put key, value . When the cache is full, evict the key with the lowest access count. If several keys tie on count,
-
Lyft: Versioned key-value store where get looks up the closest global version
Problem. Build a key value store that keeps history. Writes are stamped with a version number, and that version counter is global across all keys rather than per key. Implement get
-
Nutanix: Peak memory usage and its time window from process intervals
Problem. You get a list of processes. Each has a start time, an end time and the memory it uses while running. Find the peak total memory in use at any moment, and report the start