Amazon HLD LLD DSA Questions
- Posted
- 1 Jul 2025
Summary
The author, while preparing for an Amazon SDE 2 role, compiled a detailed list of frequently asked HLD, LLD, and DSA questions based on LeetCode discussions and personal interview encounters to give back to the community.
How it went
Hello, Just giving things back to the community. I was preparing for Amazon SDE 2 interview from past 4 months. Although things didn't go in my way, 2-3 months ago during my preparation I listed (took from leetcode discuss) what kind of questions they were asking. You can go through the questions below, it will give you a rough idea. Don't get worried about HLD and LLD questions you see here. First be prepared with standard questions what most top tech companies ask.
HLD
- Design a chat system (3 times)
- Design a collaborative code editor like Google Docs
- Design a ride-sharing app like Uber (2 times)
- Question related to metrics and distributed tracing (vague)
- High-Level Design of BookMyShow (focus on booking, high traffic handling)
- Design Google Docs with scalable link sharing (hot hits handling)
- Design a URL shortener
- Design Google Drive
- Design Twitter with some custom requirements
- High-Level Design of a Payment Service (focus on scalability, fault tolerance, trade-offs)
- Design a chat app with video messaging and video replies
- Design TikTok
- Design autocomplete / search recommendations in Amazon Search (given a ranking algorithm)
- Design a vehicle service center management system
- Design a news feed like Reddit (with age restriction capability)
- Design an upload service like Google Drive (files + photos)
- Design a system to extract images from video frames and show purchase links for products on Amazon Prime
- Design a system to track and reward Twitch viewers by watch time (top 10 viewers in the past week)
- Design a delivery workflow system where the delivery person scans products, updates states, triggers emails, and uses OTP/pictures for delivery confirmation
- Design a vehicle tracking system for multiple client use cases (cab booking, food delivery)
- Design a metrics monitoring and alerting system
- Update Mars Rover [https://leetcode.com/discuss/post/5804312/amazon-hld-update-mars-rover-by-nsd14022-svdz/]
- Design a tag management system
- Desing URL shorterner (This was asked to me)
LLD
- Design the LLD of a Vending Machine
- LLD – Design a Quick Commerce System
- Design a Parking Lot
- Design Amazon Locker
- LLD of Splitwise
- Design a Hotel Reservation System
- Design Customer Reviews for products in Amazon
- Rate Limiter LLD
- Design a Movie Booking System
- Design an IRCTC Booking System (Railway Reservation) – focus on booking module and conditions
- Design a Rate Limiter (2 times) – explained Token Bucket Algorithm, follow-up: 10 threads & 1000 API calls
- LLD for a Seller Experience Application
- Design a File Storing System somewhat similar to https://leetcode.com/discuss/post/1071562/design-a-file-download-application-syste-7kg2/
- Design a Chat Messenger like WhatsApp or Facebook Messenger
- Design a Delivery Partner Assignment System
- Design a Chess Game
- Design a File Download System
- Design an LRU Cache
- Design an Elevator (This was asked to my fellow candidate in F2F interview)
DSA
So few interview experiences provide direct leetcode problems link. This is my list which has 27 problems https://leetcode.com/problem-list/23kp61xm/ and below are open questions which I found
-
Koko Eating Bananas
-
Monotonic Stack problems
-
Word Break (asked twice)
-
Amount of Time for Binary Tree to be Infected – N-ary Tree variation
-
Longest Common Subsequence
-
Longest Palindromic Substring
-
Zigzag Level Order Traversal of Binary Tree
-
Max Path Sum in Binary Tree (with negative values)
- Follow-up: Print the path as well
-
Kth Smallest Element in BST
-
Missing Ranges (Leetcode)
-
Matrix Clockwise Rotation – Bar Raiser style
-
Path Sum I: Given a binary tree and target value, check if there's a path from root to leaf whose node sum equals target
-
Path Sum III variation: From any node to leaf, path only moves up (doesn't cross root) – tricky constraint
-
Shortest Path in Grid (4 directions only, no diagonals) – variation of “Shortest Path to Find Food”
-
Amazon Locker Problem:
- Function to return locker to open when package is received
- Function to retrieve package for a customer
-
Maximum Subset Sum in Binary Tree such that no two nodes are adjacent
- Follow-up: Print the subset
-
Minimum Number of Platforms – classic interval scheduling logic
-
Top View of Binary Tree
-
Dynamic Number of Islands – with each query (DSU/DFS)
-
Next Permutation
-
Decode Encoded String – e.g.
a3[b2[c]]→abccbccbcc -
Longest Valid Parentheses
-
Dungeon Game type problem
-
Lottery System – Closest match: Random Pick With Weight on LeetCode
Questions asked (64)
- 01
Design a Chat System
System Design
Design a chat system
- 02
Design a Collaborative Code Editor
System Design
Design a collaborative code editor like Google Docs
- 03
Design a Ride-Sharing App
System Design
Design a ride-sharing app like Uber
- 04
High-Level Design of BookMyShow
System Design
High-Level Design of BookMyShow (focus on booking, high traffic handling)
- 05
Design Google Docs with Scalable Link Sharing
System Design
Design Google Docs with scalable link sharing (hot hits handling)
- 06
Design a URL Shortener
System Design
Design a URL shortener
- 07
Design Google Drive
System Design
Design Google Drive
- 08
Design Twitter with Custom Requirements
System Design
Design Twitter with some custom requirements
- 09
High-Level Design of a Payment Service
System Design
High-Level Design of a Payment Service (focus on scalability, fault tolerance, trade-offs)
- 10
Design a Chat App with Video Messaging
System Design
Design a chat app with video messaging and video replies
- 11
Design TikTok
System Design
Design TikTok
- 12
Design Autocomplete / Search Recommendations in Amazon Search
System Design
Design autocomplete / search recommendations in Amazon Search (given a ranking algorithm)
- 13
Design a Vehicle Service Center Management System
System Design
Design a vehicle service center management system
- 14
Design a News Feed like Reddit with Age Restriction
System Design
Design a news feed like Reddit (with age restriction capability)
- 15
Design an Upload Service like Google Drive
System Design
Design an upload service like Google Drive (files + photos)
- 16
Design a System to Extract Images from Video Frames
System Design
Design a system to extract images from video frames and show purchase links for products on Amazon Prime
- 17
Design a System to Track and Reward Twitch Viewers
System Design
Design a system to track and reward Twitch viewers by watch time (top 10 viewers in the past week)
- 18
Design a Delivery Workflow System
System Design
Design a delivery workflow system where the delivery person scans products, updates states, triggers emails, and uses OTP/pictures for delivery confirmation
- 19
Design a Vehicle Tracking System
System Design
Design a vehicle tracking system for multiple client use cases (cab booking, food delivery)
- 20
Design a Metrics Monitoring and Alerting System
System Design
Design a metrics monitoring and alerting system
- 21
- 22
Design a Tag Management System
System Design
Design a tag management system
- 23
Design a URL Shortener (Personal Experience)
System Design
Desing URL shorterner (This was asked to me)
- 24
Design the LLD of a Vending Machine
System Design
Design the LLD of a Vending Machine
- 25
LLD – Design a Quick Commerce System
System Design
LLD – Design a Quick Commerce System
- 26
Design a Parking Lot
System Design
Design a Parking Lot
- 27
Design Amazon Locker
System Design
Design Amazon Locker
- 28
LLD of Splitwise
System Design
LLD of Splitwise
- 29
Design a Hotel Reservation System
System Design
Design a Hotel Reservation System
- 30
Design Customer Reviews for Products
System Design
Design Customer Reviews for products in Amazon
- 31
Rate Limiter LLD
System Design
Rate Limiter LLD
- 32
Design a Movie Booking System
System Design
Design a Movie Booking System
- 33
Design an IRCTC Booking System (Railway Reservation)
System Design
Design an IRCTC Booking System (Railway Reservation) – focus on booking module and conditions
- 34
Design a Rate Limiter with Token Bucket Algorithm
System Design
Design a Rate Limiter (2 times) – explained Token Bucket Algorithm, follow-up: 10 threads & 1000 API calls
- 35
LLD for a Seller Experience Application
System Design
LLD for a Seller Experience Application
- 36
Design a File Storing System
System Design
Open the problemDesign a File Storing System somewhat similar to https://leetcode.com/discuss/post/1071562/design-a-file-download-application-syste-7kg2/
- 37
Design a Chat Messenger
System Design
Design a Chat Messenger like WhatsApp or Facebook Messenger
- 38
Design a Delivery Partner Assignment System
System Design
Design a Delivery Partner Assignment System
- 39
Design a Chess Game
System Design
Design a Chess Game
- 40
Design a File Download System
System Design
Design a File Download System
- 41
Design an LRU Cache
Data Structures & Algorithms
Design an LRU Cache
- 42
Design an Elevator (Fellow Candidate's Experience)
System Design
Design an Elevator (This was asked to my fellow candidate in F2F interview)
- 43
Koko Eating Bananas
Data Structures & Algorithms · Medium
Koko Eating Bananas
- 44
Word Break
Data Structures & Algorithms · Medium
Word Break (asked twice)
- 45
Amount of Time for Binary Tree to be Infected (N-ary Tree variation)
Data Structures & Algorithms · Medium
Open the problemAmount of Time for Binary Tree to be Infected – N-ary Tree variation
- 46
Longest Common Subsequence
Data Structures & Algorithms · Medium
Longest Common Subsequence
- 47
Longest Palindromic Substring
Data Structures & Algorithms · Medium
Longest Palindromic Substring
- 48
Zigzag Level Order Traversal of Binary Tree
Data Structures & Algorithms · Medium
Zigzag Level Order Traversal of Binary Tree
- 49
Max Path Sum in Binary Tree with Negative Values
Data Structures & Algorithms · Hard
Max Path Sum in Binary Tree (with negative values)
- Follow-up: Print the path as well
- 50
Kth Smallest Element in BST
Data Structures & Algorithms · Medium
Kth Smallest Element in BST
- 51
Missing Ranges
Data Structures & Algorithms · Easy
Missing Ranges (Leetcode)
- 52
Matrix Clockwise Rotation (Bar Raiser Style)
Data Structures & Algorithms · Medium
Matrix Clockwise Rotation – Bar Raiser style
- 53
Path Sum I (Root to Leaf)
Data Structures & Algorithms · Easy
Path Sum I: Given a binary tree and target value, check if there's a path from root to leaf whose node sum equals target
- 54
Path Sum III Variation (Any Node to Leaf, Path Moves Up)
Data Structures & Algorithms · Medium
Path Sum III variation: From any node to leaf, path only moves up (doesn't cross root) – tricky constraint
- 55
Shortest Path in Grid (4 Directions)
Data Structures & Algorithms · Medium
Shortest Path in Grid (4 directions only, no diagonals) – variation of “Shortest Path to Find Food”
- 56
Amazon Locker Problem (DSA focus)
Data Structures & Algorithms
Amazon Locker Problem:
* Function to return locker to open when package is received * Function to retrieve package for a customer - 57
Maximum Subset Sum in Binary Tree (No Adjacent Nodes)
Data Structures & Algorithms · Medium
Maximum Subset Sum in Binary Tree such that no two nodes are adjacent
* Follow-up: *Print the subset* - 58
Minimum Number of Platforms
Data Structures & Algorithms · Medium
Minimum Number of Platforms – classic interval scheduling logic
- 59
Top View of Binary Tree
Data Structures & Algorithms · Medium
Top View of Binary Tree
- 60
Dynamic Number of Islands with Queries
Data Structures & Algorithms · Hard
Dynamic Number of Islands – with each query (DSU/DFS)
- 61
Next Permutation
Data Structures & Algorithms · Medium
Next Permutation
- 62
Decode Encoded String
Data Structures & Algorithms · Medium
Decode Encoded String – e.g.
a3[b2[c]]→abccbccbcc - 63
Longest Valid Parentheses
Data Structures & Algorithms · Hard
Longest Valid Parentheses
- 64
Lottery System (Random Pick With Weight)
Data Structures & Algorithms · Medium
Lottery System – Closest match: Random Pick With Weight on LeetCode
How they prepared
What I will suggest you is to maintain your own tracker and list recently asked questions at the time of your prepartion. First be prepared with standard questions what most top tech companies ask. I created a list in leetcode and added them to it, which will be very easy for us to practice: https://leetcode.com/problem-list/23kp61xm/. I suggest you to do the same thing. If it is not a leetcode problem or a open question statement track it somewhere, I do it in google docs.