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
-
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
-
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
-
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
-
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
-
Well-known company with no remote work, or a lesser-known mostly remote job?
A 26 year old with about five years in Linux administration and DevOps had two offers: an expected $140K at a respected public company with no remote work, and a negotiated $130K a
Discussion SDE 2 0 4 0 -
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
-
Laid off with three months of runway: target AI roles, staff web roles or management?
A staff level engineer with about ten years in full stack engineering and management had moved into AI work, then was laid off from a head of AI role at a struggling startup. They
Discussion Staff+ 0 4 0 -
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
-
Wise: Implement a circuit breaker in a pair programming session
Problem. In a pair programming round for a senior backend role, implement the circuit breaker pattern and talk through how it behaves: when calls are allowed, when the breaker trip
-
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
-
Out of work with two months of savings: take a startup job or keep preparing for big tech?
A mid level full stack engineer had been out of work for about four months, partly through illness and rest, and had practised algorithms daily for two months. Savings would last r
Discussion SDE 2 0 4 0 -
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
-
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
-
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
-
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
-
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
-
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
-
Remote services job at 31.5 LPA vs an in-office product-company offer in Bangalore
A data engineer at a services company earned 31.5 LPA, worked remotely from their parents' home in a smaller city, and had received hikes of 18% and 23% with a promotion in the las
Discussion SDE 3 / Senior 0 4 0 -
Stuck with a 90-day notice period in India: how do I get more recruiter calls?
An engineer in India with about 3.5 years of experience and a 9.2 LPA package kept getting filtered out because of a 90 day notice period, even at services companies. They asked ho
Discussion SDE 2 0 4 0