Discuss
Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.
-
Anduril: Arrange two teams for a photo, short in front and tall behind
Problem. Two teams line up for a photo in two rows. Every player in the back row must be taller than the player standing in front of them. Decide how to order the players so this w
-
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
-
Waymo: Track recent car positions with a bounded history
Problem. Build a tracker that records each car's position over time and can return the most recent positions. Follow up. Keep at most a fixed number of past positions per car. What
-
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,
-
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
-
Anduril: Implement a doubly linked list with insert, delete and search
Problem. Design and code a doubly linked list class with insert, delete and search. Follow ups. Handle inserts at the head, at the tail and in the middle. Refactor the first versio
-
Scale AI: Build a small load balancer with a priority task queue
Problem. Starting from a provided project skeleton, build a lightweight load balancer in Python. It must keep track of each worker's state, hold incoming tasks in a priority queue,
-
Coupang: Track cross-border shipments handled by many carriers
Problem. Design a service that tracks e commerce orders shipped from one country to another. Details given. A delivery passes through several stops in both the origin and destinati
-
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
-
Coupang: In-memory file system with append and sorted listing
Problem. Implement a file system interface with these operations: Create a directory. Write to a file: create it with the content if missing, otherwise append the content. Read cat
-
Coupang: Machine-code a shipment label printing service
Problem. Design and implement a service that prints shipping labels for packages. Format. No UML was asked for. The expectation was to clarify requirements, agree on scope and go s
-
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
-
Roblox: Bump allocator over one big memory chunk
Problem. Build a bump allocator. It grabs one large block of memory up front and hands out smaller pieces from it on request. When the remaining space cannot fit a request, it retu
-
Roblox: Design a shared resource loader
Problem. Design a resource loader that fetches assets from local disk or a CDN, keeps them in memory and lets many clients use the same loaded resource. What the candidate expected
-
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
-
Meta: Median filter over a k-by-k window of an image buffer
Problem. You receive an input image buffer, an output buffer, the image width and height, and an odd kernel width k. For every pixel, write to the output the median of the k by k b
-
Rakuten: Traffic light component with a timed cycle
Problem. Build a traffic signal component in React with TypeScript. Rules given. 1. The lights switch every 2 seconds. 2. After each 6 seconds of switching, pause for 4 seconds, th
-
Tekion: Build an in-memory file system with cp, mv, mkdir and pwd
Problem. In 45 minutes, design and fully implement a file management system that supports these commands: cp copy , mv move , mkdir make a directory and pwd print the current direc