Discuss
Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.
-
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.
-
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
-
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
-
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
-
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
-
Revolut: In-memory bank that grows into a production service
Problem. Start with an in memory banking service that can open accounts and return balances. Then extend it step by step. Steps. Add withdrawals that are safe under concurrent acce
-
Walmart Global Tech: Count islands in a grid, then count only distinct island shapes
Problem. You get a 2D grid of land and water cells. First, count the islands, where an island is a group of land cells connected horizontally or vertically. Follow up twist. Change
-
Walmart Global Tech: Build a thread pool executor modelled on the JDK internals
Problem. Design a thread pool executor that works the way Java's built in one does internally. Present a class diagram, how the classes relate, and their key fields and methods. Ex
-
MongoDB: Alert when migrated records miss a lag deadline
Problem. Records are being migrated from a primary database to a second datastore. An event fires when a record leaves the primary and another when it arrives in the target. The ma
-
MongoDB: Versioned document store with out-of-order writes
Problem. Build a small datastore with two operations. put docId, contents, timestamp saves a version of a document at a timestamp. One document can have many versions, and puts may
-
PhonePe: DAG workflow engine with parallel tasks, retries and execution logs
Problem. Build a workflow execution engine in the spirit of Apache Airflow. A workflow is a directed acyclic graph, and each node is a task. The engine works out a valid run order
-
PhonePe: Merchant settlement system with T+1 payouts and a daily ledger
Problem. Design the system that settles money to merchants. Requirements. Each transaction is settled on T+1, after the platform's commission is taken out A merchant can see a ledg
-
Microsoft: Job orchestrator that blocks overlapping runs of the same job
Problem. Design a job scheduler and orchestrator. It supports n different job types. Every time a job is requested, the system hands back a unique run id for that execution. For so
-
Grammarly: Remove adjacent duplicates chosen by a predicate
Problem. Start with the classic task: repeatedly remove pairs of equal adjacent characters from a string until none remain. Then generalise it: removal is decided by a function or
-
Zeta: Ride-sharing app with concurrency follow-ups
Problem. In a timed machine coding round, build a working ride sharing app where users offer rides and others take them, similar to carpool apps. What was expected. A runnable solu
-
CrowdStrike: Design a malware file-scanning service
Problem. Design a service like a public malware lookup site: users upload files and get back a verdict on whether they are malicious. Format. Given as a take home, then discussed l
-
Twilio: Implement an asynchronous task scheduler
Problem. Write an asynchronous task scheduler that runs submitted tasks. Format. Screen shared, with documentation lookup allowed. The recruiter had described it as a typical codin
-
Meta: Notify a million users at the start of a flash sale
Problem. Design a notification system that has to alert roughly one million users when a flash sale goes live. What the interviewer focused on. The discussion centered on fan out,
-
Airbnb: Host dashboard for nights booked and average price over a date range
Problem. Design a page for hosts. The host picks a date range and sees aggregate numbers for it, specifically how many nights were booked and the average nightly price. Given. Assu
-
Paytm: Predict commit vs rollback when @Transactional methods call each other
Problem. You are shown a Spring service. placeOrder is annotated @Transactional and calls saveOrder on the same class, which is also @Transactional . It then calls sendNotification