Discuss
Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.
-
American Express: Design a payment gateway with retries and idempotency
Problem. Design a payment gateway. Areas the interviewer pushed on. Retrying failed calls safely. Handling failures at each step. Idempotency so a payment is never applied twice. I
-
Zomato: Schema to cap a banner at X views per Y hours across Z windows
Problem. Design a schema and an approach for frequency capping a banner. Each user should see it at most X times within a window of Y hours, and the rule repeats for Z such windows
-
Freshworks: Data model for a Q&A / blogging app with feed and notifications
Problem. Design the database for a question and answer or long form blogging product. It has to support posts and comments, plus a user feed and notifications. Context. This came n
-
Akamai: Keep only the odd values of a linked list
Problem. Given a linked list, return a new list that holds only its odd values. For 1 2 3 4 5 6 7 8 the answer is 1 3 5 7. Follow ups. Time and space complexity, then how things ch
-
Netflix: No repeated show in any row or column of the first home screen
Problem. Think of the home page as a grid of rows of shows. Only part of it is visible on the first screen the viewport . Work out how to make sure that, within that first screen,
-
Zomato: Suggest a new dish price between the 1/3 and 2/3 points of past prices
Problem. You get the prices of a merchant's existing dishes. Suggest a price for a new dish that is higher than the value at the one third position of the price distribution and lo
-
Citadel: Running median with insert and findMedian
Problem. Design a structure with two operations: insert an integer, and return the median of everything inserted so far. Expected path. Start with a list that is sorted when asked,
-
Flipkart: Map each word to every way it can be built from other words in the list
Problem. You get a list of words. Return a map whose keys are the words that can be made by joining two or more other words from the same list. Each value lists every combination o
-
Splunk: Design a concert ticket booking platform
Problem. Give a high level architecture for a platform that sells concert tickets. Context. This was the onsite system design round for a senior engineer role; an earlier screen al
-
Flipkart: Executable e-commerce billing engine with discounts and loyalty levels
Problem. Build a small but fully runnable billing module for an online store. It has to compute the bill for an order, apply discounts, and run a loyalty scheme where customers ear
-
Akamai: Design a KYC document storage service
Problem. Design a service that collects and stores users' identity and vehicle registration documents for KYC checks. What was discussed. The schema for user documents and a table
-
Expedia Group: API to decide whether a product can be delivered to a pincode in two days
Prompt. Design an API that, given a product and a delivery postal code pincode , says whether the product can arrive within two days. Points the discussion covered Core check: vali
-
Booking.com: Spring Boot service: hotel CRUD plus three nearest hotels to a city
Setup. A ready made Spring Boot project with an in memory H2 database already filled with data. JPA entities and repositories for Hotel and City exist, and both tables store latitu
-
Robinhood: Top-three referral leaderboard counting indirect referrals
Problem. Two parallel arrays describe referrals in the order they happened: rh users i referred new users i . A user gets credit for everyone below them in their referral chain, no
-
Snap: Count pairs of people who are not connected through mutual liking
Problem. There are n people and a list of pairs a, b meaning a and b like each other. Return how many pairs of people do not like each other. In graph terms, liking spreads through
-
Snap: Implement sine from scratch with a series expansion and a stopping rule
Problem. Write your own version of a library sine function: take a number x in radians and return sin x as a double, without calling the built in. The suggested route is the Taylor
-
Robinhood: Fractional share inventory that stays flattened below one share
Problem. Exchanges only trade whole shares, but customers can buy or sell fractions. The firm fills fractional orders from its own inventory per symbol and trades whole shares with
-
Zepto: Coupon types schema plus frequency-weighted coupon picks per minute
Problem. A combined LLD and HLD round on a coupon service, in two parts. Part 1. Design the database schema and the system for several coupon types: percentage off, flat amount off
-
Razorpay: In-memory pub/sub with ordered, guaranteed per-consumer delivery
Problem. In 2 hours, with the interviewer watching your screen, build an in memory pub/sub queue. Every message published to a topic must reach every subscriber of that topic, in p
-
Razorpay: Mini search engine: add/remove documents, AND-query words, search by tag
Problem. Build a small document search system. Requirements. 1. Add and remove documents plain strings are fine 2. Given a query, efficiently return every document that contains al