Amazon HLD LLD DSA Questions

amazon logo
amazon
SDE 2
July 1, 2025 β€’ 2 reads

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.

Full Experience

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

  1. Design a chat system (3 times)
  2. Design a collaborative code editor like Google Docs
  3. Design a ride-sharing app like Uber (2 times)
  4. Question related to metrics and distributed tracing (vague)
  5. High-Level Design of BookMyShow (focus on booking, high traffic handling)
  6. Design Google Docs with scalable link sharing (hot hits handling)
  7. Design a URL shortener
  8. Design Google Drive
  9. Design Twitter with some custom requirements
  10. High-Level Design of a Payment Service (focus on scalability, fault tolerance, trade-offs)
  11. Design a chat app with video messaging and video replies
  12. Design TikTok
  13. Design autocomplete / search recommendations in Amazon Search (given a ranking algorithm)
  14. Design a vehicle service center management system
  15. Design a news feed like Reddit (with age restriction capability)
  16. Design an upload service like Google Drive (files + photos)
  17. Design a system to extract images from video frames and show purchase links for products on Amazon Prime
  18. Design a system to track and reward Twitch viewers by watch time (top 10 viewers in the past week)
  19. Design a delivery workflow system where the delivery person scans products, updates states, triggers emails, and uses OTP/pictures for delivery confirmation
  20. Design a vehicle tracking system for multiple client use cases (cab booking, food delivery)
  21. Design a metrics monitoring and alerting system
  22. Update Mars Rover [https://leetcode.com/discuss/post/5804312/amazon-hld-update-mars-rover-by-nsd14022-svdz/]
  23. Design a tag management system
  24. Desing URL shorterner (This was asked to me)

LLD

  1. Design the LLD of a Vending Machine
  2. LLD – Design a Quick Commerce System
  3. Design a Parking Lot
  4. Design Amazon Locker
  5. LLD of Splitwise
  6. Design a Hotel Reservation System
  7. Design Customer Reviews for products in Amazon
  8. Rate Limiter LLD
  9. Design a Movie Booking System
  10. Design an IRCTC Booking System (Railway Reservation) – focus on booking module and conditions
  11. Design a Rate Limiter (2 times) – explained Token Bucket Algorithm, follow-up: 10 threads & 1000 API calls
  12. LLD for a Seller Experience Application
  13. Design a File Storing System somewhat similar to https://leetcode.com/discuss/post/1071562/design-a-file-download-application-syste-7kg2/
  14. Design a Chat Messenger like WhatsApp or Facebook Messenger
  15. Design a Delivery Partner Assignment System
  16. Design a Chess Game
  17. Design a File Download System
  18. Design an LRU Cache
  19. 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

  1. Koko Eating Bananas

  2. Monotonic Stack problems

  3. Word Break (asked twice)

  4. Amount of Time for Binary Tree to be Infected – N-ary Tree variation

  5. Longest Common Subsequence

  6. Longest Palindromic Substring

  7. Zigzag Level Order Traversal of Binary Tree

  8. Max Path Sum in Binary Tree (with negative values)

    • Follow-up: Print the path as well
  9. Kth Smallest Element in BST

  10. Missing Ranges (Leetcode)

  11. Matrix Clockwise Rotation – Bar Raiser style

  12. 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

  13. Path Sum III variation: From any node to leaf, path only moves up (doesn't cross root) – tricky constraint

  14. Shortest Path in Grid (4 directions only, no diagonals) – variation of β€œShortest Path to Find Food”

  15. Amazon Locker Problem:

    • Function to return locker to open when package is received
    • Function to retrieve package for a customer
  16. Maximum Subset Sum in Binary Tree such that no two nodes are adjacent

    • Follow-up: Print the subset
  17. Minimum Number of Platforms – classic interval scheduling logic

  18. Top View of Binary Tree

  19. Dynamic Number of Islands – with each query (DSU/DFS)

  20. Next Permutation

  21. Decode Encoded String – e.g. a3[b2[c]] β†’ abccbccbcc

  22. Longest Valid Parentheses

  23. Dungeon Game type problem

  24. Lottery System – Closest match: Random Pick With Weight on LeetCode

Interview Questions (64)

Q1
Design a Chat System
System Design

Design a chat system

Q2
Design a Collaborative Code Editor
System Design

Design a collaborative code editor like Google Docs

Q3
Design a Ride-Sharing App
System Design

Design a ride-sharing app like Uber

Q4
High-Level Design of BookMyShow
System Design

High-Level Design of BookMyShow (focus on booking, high traffic handling)

Q5
Design Google Docs with Scalable Link Sharing
System Design

Design Google Docs with scalable link sharing (hot hits handling)

Q6
Design a URL Shortener
System Design

Design a URL shortener

Q7
Design Google Drive
System Design

Design Google Drive

Q8
Design Twitter with Custom Requirements
System Design

Design Twitter with some custom requirements

Q9
High-Level Design of a Payment Service
System Design

High-Level Design of a Payment Service (focus on scalability, fault tolerance, trade-offs)

Q10
Design a Chat App with Video Messaging
System Design

Design a chat app with video messaging and video replies

Q11
Design TikTok
System Design

Design TikTok

Q12
Design Autocomplete / Search Recommendations in Amazon Search
System Design

Design autocomplete / search recommendations in Amazon Search (given a ranking algorithm)

Q13
Design a Vehicle Service Center Management System
System Design

Design a vehicle service center management system

Q14
Design a News Feed like Reddit with Age Restriction
System Design

Design a news feed like Reddit (with age restriction capability)

Q15
Design an Upload Service like Google Drive
System Design

Design an upload service like Google Drive (files + photos)

Q16
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

Q17
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)

Q18
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

Q19
Design a Vehicle Tracking System
System Design

Design a vehicle tracking system for multiple client use cases (cab booking, food delivery)

Q20
Design a Metrics Monitoring and Alerting System
System Design

Design a metrics monitoring and alerting system

Q21
Update Mars Rover
System Design

Update Mars Rover

Q22
Design a Tag Management System
System Design

Design a tag management system

Q23
Design a URL Shortener (Personal Experience)
System Design

Desing URL shorterner (This was asked to me)

Q24
Design the LLD of a Vending Machine
System Design

Design the LLD of a Vending Machine

Q25
LLD – Design a Quick Commerce System
System Design

LLD – Design a Quick Commerce System

Q26
Design a Parking Lot
System Design

Design a Parking Lot

Q27
Design Amazon Locker
System Design

Design Amazon Locker

Q28
LLD of Splitwise
System Design

LLD of Splitwise

Q29
Design a Hotel Reservation System
System Design

Design a Hotel Reservation System

Q30
Design Customer Reviews for Products
System Design

Design Customer Reviews for products in Amazon

Q31
Rate Limiter LLD
System Design

Rate Limiter LLD

Q32
Design a Movie Booking System
System Design

Design a Movie Booking System

Q33
Design an IRCTC Booking System (Railway Reservation)
System Design

Design an IRCTC Booking System (Railway Reservation) – focus on booking module and conditions

Q34
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

Q35
LLD for a Seller Experience Application
System Design

LLD for a Seller Experience Application

Q36
Design a File Storing System
System Design
Q37
Design a Chat Messenger
System Design

Design a Chat Messenger like WhatsApp or Facebook Messenger

Q38
Design a Delivery Partner Assignment System
System Design

Design a Delivery Partner Assignment System

Q39
Design a Chess Game
System Design

Design a Chess Game

Q40
Design a File Download System
System Design

Design a File Download System

Q41
Design an LRU Cache
Data Structures & Algorithms

Design an LRU Cache

Q42
Design an Elevator (Fellow Candidate's Experience)
System Design

Design an Elevator (This was asked to my fellow candidate in F2F interview)

Q43
Koko Eating Bananas
Data Structures & AlgorithmsMedium

Koko Eating Bananas

Q44
Word Break
Data Structures & AlgorithmsMedium

Word Break (asked twice)

Q45
Amount of Time for Binary Tree to be Infected (N-ary Tree variation)
Data Structures & AlgorithmsMedium

Amount of Time for Binary Tree to be Infected – N-ary Tree variation

Q46
Longest Common Subsequence
Data Structures & AlgorithmsMedium

Longest Common Subsequence

Q47
Longest Palindromic Substring
Data Structures & AlgorithmsMedium

Longest Palindromic Substring

Q48
Zigzag Level Order Traversal of Binary Tree
Data Structures & AlgorithmsMedium

Zigzag Level Order Traversal of Binary Tree

Q49
Max Path Sum in Binary Tree with Negative Values
Data Structures & AlgorithmsHard

Max Path Sum in Binary Tree (with negative values)

  • Follow-up: Print the path as well
Q50
Kth Smallest Element in BST
Data Structures & AlgorithmsMedium

Kth Smallest Element in BST

Q51
Missing Ranges
Data Structures & AlgorithmsEasy

Missing Ranges (Leetcode)

Q52
Matrix Clockwise Rotation (Bar Raiser Style)
Data Structures & AlgorithmsMedium

Matrix Clockwise Rotation – Bar Raiser style

Q53
Path Sum I (Root to Leaf)
Data Structures & AlgorithmsEasy

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

Q54
Path Sum III Variation (Any Node to Leaf, Path Moves Up)
Data Structures & AlgorithmsMedium

Path Sum III variation: From any node to leaf, path only moves up (doesn't cross root) – tricky constraint

Q55
Shortest Path in Grid (4 Directions)
Data Structures & AlgorithmsMedium

Shortest Path in Grid (4 directions only, no diagonals) – variation of β€œShortest Path to Find Food”

Q56
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
Q57
Maximum Subset Sum in Binary Tree (No Adjacent Nodes)
Data Structures & AlgorithmsMedium

Maximum Subset Sum in Binary Tree such that no two nodes are adjacent

* Follow-up: *Print the subset*
Q58
Minimum Number of Platforms
Data Structures & AlgorithmsMedium

Minimum Number of Platforms – classic interval scheduling logic

Q59
Top View of Binary Tree
Data Structures & AlgorithmsMedium

Top View of Binary Tree

Q60
Dynamic Number of Islands with Queries
Data Structures & AlgorithmsHard

Dynamic Number of Islands – with each query (DSU/DFS)

Q61
Next Permutation
Data Structures & AlgorithmsMedium

Next Permutation

Q62
Decode Encoded String
Data Structures & AlgorithmsMedium

Decode Encoded String – e.g. a3[b2[c]] β†’ abccbccbcc

Q63
Longest Valid Parentheses
Data Structures & AlgorithmsHard

Longest Valid Parentheses

Q64
Lottery System (Random Pick With Weight)
Data Structures & AlgorithmsMedium

Lottery System – Closest match: Random Pick With Weight on LeetCode

Preparation Tips

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.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!