Top DSA interview questions asked in Amazon
Prepare for Amazon technical interviews with these frequently asked Data Structures and Algorithms questions covering arrays, strings, linked lists, trees, graphs, dynamic programming, and more.
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41Longest Subarray with Zero Sum
- 42Median of Row-wise Sorted Matrix
- 43Rotting Apples
- 44Bottom View of Binary Tree
- 45Collect Jewels
- 46Knight's Journey On A Chessboard
- 47Stepping Numbers
- 48Max Meetings in a Room
- 49Maximum k-Substring Vowels
- 50Trains and Platforms
DSA is one of the most important parts of Amazon's technical interview process. Candidates are expected to solve coding problems efficiently while explaining their thought process, trade-offs, and time-space complexity.
Arrays, Strings, Hash Maps, Sliding Window, Linked Lists, Trees, Binary Search Trees, Graphs, Heaps, Dynamic Programming, Backtracking, and Greedy Algorithms are among the most frequently tested topics.
Most Amazon coding questions are comparable to LeetCode Medium problems. However, candidates should also be prepared for a few Hard questions, especially for SDE-2 and experienced engineering roles.
Yes. Dynamic Programming is a common topic in Amazon interviews. Questions based on Coin Change, Longest Increasing Subsequence, Edit Distance, Word Break, Climbing Stairs, and Matrix DP appear regularly.
Yes. Amazon frequently asks graph-based problems involving BFS, DFS, Topological Sorting, Connected Components, Number of Islands, and Course Schedule.
The process typically includes an Online Assessment followed by 3 to 5 technical interview rounds. The exact number varies depending on the role and experience level.
Yes. Many Online Assessment problems are based on common DSA patterns such as Sliding Window, Hashing, Binary Search, Graph Traversal, and Dynamic Programming, which also appear in technical interviews.
Both are critical. Strong coding skills alone are not enough. Interviewers evaluate candidates against Leadership Principles such as Ownership, Customer Obsession, Dive Deep, Earn Trust, and Bias for Action throughout the interview process.
Focus on mastering core DSA concepts, solving Amazon-tagged interview questions, learning common problem-solving patterns, and practicing mock interviews. Structured learning resources such as the Namaste DSA course can help candidates systematically cover important interview topics.
LeetCode provides excellent practice, especially Medium-level problems. However, candidates should also focus on communication, complexity analysis, optimization techniques, and behavioral preparation based on Amazon's Leadership Principles.
Ready to master DSA completely?
Want to upskill yourself, crack your next interview, and get your dream job? Join our comprehensive course to dive deeper with high-quality video tutorials, solve interview questions, and a premium community.
Master DSA
Want to upskill yourself, crack your next interview, and get your dream job? Join our comprehensive course.

