Top 120 Most Frequently Asked Amazon SDE-1 Interview Questions (2022–2025)

📌 Amazon SDE-1 Interview Preparation (2021–2025)

🧠 Dynamic Programming – Curated DP problems frequently asked in Amazon SDE-1 interviews: https://leetcode.com/discuss/post/7454002/dynamic-programming-problems-for-amazon-f8wqq/

🌳 Trees – High-yield tree problems covering traversal, BSTs, and structural patterns: https://leetcode.com/discuss/post/7454008/unique-tree-related-from-amazon-sde-1-in-nvf6/

🕸️ Graphs – Amazon-focused graph problems on BFS, DFS, shortest paths, and connectivity: https://leetcode.com/discuss/post/7454010/graph-problems-for-amazon-sde-1-intervie-96rq/

📚 Stack & Queue – Interview-relevant stack and queue problems with real patterns: https://leetcode.com/discuss/post/7454020/amazon-sde-1-stack-queue-interview-probl-19m2/
🚀

Question (LeetCode #)LinkDifficultyTopics
Two Sum (1)leetcode.com/problems/two-sumEasyArray, Hash Table
Best Time to Buy and Sell Stock I (121)leetcode.com/problems/best-time-to-buy-and-sell-stockEasyArray, Dynamic Programming
LRU Cache (146)leetcode.com/problems/lru-cacheMediumDesign, Hash Table
Number of Islands (200)leetcode.com/problems/number-of-islandsMediumGraph (DFS/BFS), Grid
Reorganize String (767)leetcode.com/problems/reorganize-stringMediumGreedy, Heap, String
Longest Palindromic Substring (5)leetcode.com/problems/longest-palindromic-substringMediumString, Dynamic Programming
Add Two Numbers (2)leetcode.com/problems/add-two-numbersMediumLinked List, Math
First and Last Position of Element in Sorted Array (34)leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-arrayMediumArray, Binary Search
Koko Eating Bananas (875)leetcode.com/problems/koko-eating-bananasMediumBinary Search, Greedy
Trapping Rain Water (42)leetcode.com/problems/trapping-rain-waterHardArray, Two Pointers, Stack
Jump Game II (45)leetcode.com/problems/jump-game-iiMediumGreedy, BFS, Dynamic Programming
Group Anagrams (49)leetcode.com/problems/group-anagramsMediumHash Table, String
Longest Substring Without Repeating Characters (3)leetcode.com/problems/longest-substring-without-repeating-charactersMediumString, Sliding Window
Merge k Sorted Lists (23)leetcode.com/problems/merge-k-sorted-listsHardLinked List, Heap
Candy (135)leetcode.com/problems/candyHardGreedy, Dynamic Programming
House Robber (198)leetcode.com/problems/house-robberMediumDynamic Programming
Reverse Linked List (206)leetcode.com/problems/reverse-linked-listEasyLinked List
Top K Frequent Elements (347)leetcode.com/problems/top-k-frequent-elementsMediumHeap, Hash Table
Median of Two Sorted Arrays (4)leetcode.com/problems/median-of-two-sorted-arraysHardArray, Divide & Conquer
Valid Parentheses (20)leetcode.com/problems/valid-parenthesesEasyStack, String
Generate Parentheses (22)leetcode.com/problems/generate-parenthesesMediumBacktracking, String
Merge Intervals (56)leetcode.com/problems/merge-intervalsMediumArray, Sorting
Search a 2D Matrix (74)leetcode.com/problems/search-a-2d-matrixMediumMatrix, Binary Search
Minimum Window Substring (76)leetcode.com/problems/minimum-window-substringHardSliding Window, Hash Table
Best Time to Buy and Sell Stock II (122)leetcode.com/problems/best-time-to-buy-and-sell-stock-iiEasyGreedy
Min Stack (155)leetcode.com/problems/min-stackEasyStack, Design
Longest Repeating Character Replacement (424)leetcode.com/problems/longest-repeating-character-replacementMediumSliding Window, String
Palindrome Number (9)leetcode.com/problems/palindrome-numberEasyMath
Next Permutation (31)leetcode.com/problems/next-permutationMediumArray
Search in Rotated Sorted Array (33)leetcode.com/problems/search-in-rotated-sorted-arrayMediumBinary Search
Course Schedule II (210)leetcode.com/problems/course-schedule-iiMediumGraph, Topological Sort
Basic Calculator (224)leetcode.com/problems/basic-calculatorHardStack, String
Meeting Rooms II (253)leetcode.com/problems/meeting-rooms-iiMediumSorting, Heap
Coin Change (322)leetcode.com/problems/coin-changeMediumDynamic Programming
Number of Connected Components in an Undirected Graph (323)leetcode.com/problems/number-of-connected-components-in-an-undirected-graphMediumGraph, DFS/BFS
LFU Cache (460)leetcode.com/problems/lfu-cacheHardDesign, Doubly-Linked List
Concatenated Words (472)leetcode.com/problems/concatenated-wordsHardTrie, Dynamic Programming
Flood Fill (733)leetcode.com/problems/flood-fillEasyDFS, Matrix
Rotting Oranges (994)leetcode.com/problems/rotting-orangesMediumBFS, Matrix
Using a Robot to Print the Lexicographically Smallest String (1165)leetcode.com/problems/print-foobar-binaryHardString, Simulation
String to Integer (atoi) (8)leetcode.com/problems/string-to-integer-atoiEasyString, Implementation
Integer to Roman (12)leetcode.com/problems/integer-to-romanMediumMath
Roman to Integer (13)leetcode.com/problems/roman-to-integerEasyString
3Sum (15)leetcode.com/problems/3sumMediumArray, Two Pointers
Rotate Image (48)leetcode.com/problems/rotate-imageMediumArray, Matrix
Maximum Subarray (53)leetcode.com/problems/maximum-subarrayEasyArray, Dynamic Programming
Unique Paths (62)leetcode.com/problems/unique-pathsMediumDynamic Programming
Edit Distance (72)leetcode.com/problems/edit-distanceHardDynamic Programming
Word Search (79)leetcode.com/problems/word-searchMediumDFS, Backtracking
Binary Tree Right Side View (199)leetcode.com/problems/binary-tree-right-side-viewMediumTree, BFS
Kth Largest Element in an Array (215)leetcode.com/problems/kth-largest-element-in-an-arrayMediumHeap, Quickselect
Contains Duplicate (217)leetcode.com/problems/contains-duplicateEasyArray, Hash Table
Invert Binary Tree (226)leetcode.com/problems/invert-binary-treeEasyTree, Recursion
Lowest Common Ancestor of a Binary Tree (236)leetcode.com/problems/lowest-common-ancestor-of-a-binary-treeMediumTree, Recursion
Product of Array Except Self (238)leetcode.com/problems/product-of-array-except-selfMediumArray, Prefix Sum
Move Zeroes (283)leetcode.com/problems/move-zeroesEasyArray, Two Pointers
First Unique Character in a String (387)leetcode.com/problems/first-unique-character-in-a-stringEasyHash Table, String
Fizz Buzz (412)leetcode.com/problems/fizz-buzzEasySimulation
Subarray Sum Equals K (560)leetcode.com/problems/subarray-sum-equals-kMediumHash Table, Prefix Sum
Top K Frequent Words (692)leetcode.com/problems/top-k-frequent-wordsMediumHeap, Hash Table
Analyze User Website Visit Pattern (1152)leetcode.com/problems/analyze-user-website-visit-patternMediumHash Table, Sorting
Count the Number of Substrings With Dominant Ones (2404)leetcode.com/problems/count-substrings-with-dominant-onesHardString, Prefix Sum
Reverse Nodes in k-Group (25)leetcode.com/problems/reverse-nodes-in-k-groupHardLinked List, Recursion
Longest Valid Parentheses (32)leetcode.com/problems/longest-valid-parenthesesHardStack, Dynamic Programming
Valid Sudoku (36)leetcode.com/problems/valid-sudokuMediumHash Table, Matrix
Sudoku Solver (37)leetcode.com/problems/sudoku-solverHardBacktracking
Combination Sum (39)leetcode.com/problems/combination-sumMediumBacktracking
N-Queens (51)leetcode.com/problems/n-queensHardBacktracking
Jump Game (55)leetcode.com/problems/jump-gameMediumGreedy
Climbing Stairs (70)leetcode.com/problems/climbing-stairsEasyDynamic Programming
Merge Sorted Array (88)leetcode.com/problems/merge-sorted-arrayEasyArray
Decode Ways (91)leetcode.com/problems/decode-waysMediumDynamic Programming
Validate Binary Search Tree (98)leetcode.com/problems/validate-binary-search-treeMediumTree, Recursion
Word Ladder (127)leetcode.com/problems/word-ladderHardBFS, String
Reorder List (143)leetcode.com/problems/reorder-listMediumLinked List, Two Pointers
Evaluate Reverse Polish Notation (150)leetcode.com/problems/evaluate-reverse-polish-notationMediumStack
Find Minimum in Rotated Sorted Array (153)leetcode.com/problems/find-minimum-in-rotated-sorted-arrayMediumBinary Search
Majority Element (169)leetcode.com/problems/majority-elementEasyArray, Bit Manipulation
Course Schedule I (207)leetcode.com/problems/course-scheduleMediumGraph, Topological Sort
Word Search II (212)leetcode.com/problems/word-search-iiHardTrie, Backtracking
Sliding Window Maximum (239)leetcode.com/problems/sliding-window-maximumHardDeque, Heap
Valid Anagram (242)leetcode.com/problems/valid-anagramEasyHash Table, String
Missing Number (268)leetcode.com/problems/missing-numberEasyBit Manipulation, Array
Alien Dictionary (269)leetcode.com/problems/alien-dictionaryHardGraph, Topological Sort
Integer to English Words (273)leetcode.com/problems/integer-to-english-wordsHardMath, String
Find the Duplicate Number (287)leetcode.com/problems/find-the-duplicate-numberMediumArray, Two Pointers
Design Tic-Tac-Toe (348)leetcode.com/problems/design-tic-tac-toeMediumDesign, Data Structures
Insert Delete GetRandom O(1) (380)leetcode.com/problems/insert-delete-getrandom-o1MediumDesign, Hash Table
Pacific Atlantic Water Flow (417)leetcode.com/problems/pacific-atlantic-water-flowMediumDFS, Matrix
String Compression (443)leetcode.com/problems/string-compressionMediumString
Number of Provinces (547)leetcode.com/problems/number-of-provincesMediumGraph, BFS/DFS
Basic Calculator III (772)leetcode.com/problems/basic-calculator-iiiHardString, Stack
Maximize Distance to Closest Person (849)leetcode.com/problems/maximize-distance-to-closest-personMediumArray, Two Pointers
Middle of the Linked List (876)leetcode.com/problems/middle-of-the-linked-listEasyLinked List
Capacity To Ship Packages Within D Days (1011)leetcode.com/problems/capacity-to-ship-packages-within-d-daysMediumBinary Search
Lexicographically Smallest Equivalent String (1061)leetcode.com/problems/lexicographically-smallest-equivalent-stringHardUnion-Find, Graph
Maximum Profit in Job Scheduling (1235)leetcode.com/problems/maximum-profit-in-job-schedulingHardDynamic Programming
Max Difference You Can Get From Changing an Integer (1932)leetcode.com/problems/max-difference-you-can-get-from-changing-an-integerHardMath
Additional Common Problems (not listed above):
Max Area of Island (695)leetcode.com/problems/max-area-of-islandMediumDFS, Grid
K Closest Points to Origin (973)leetcode.com/problems/k-closest-points-to-originMediumHeap, Sorting
Zigzag Level Order Traversal of Binary Tree (103)leetcode.com/problems/binary-tree-zigzag-level-order-traversalMediumTree, BFS
Design Skiplist (1206)leetcode.com/problems/design-skiplistHardDesign, Linked List
Serialize and Deserialize Binary Tree (297)leetcode.com/problems/serialize-and-deserialize-binary-treeHardTree, Design
Find Minimum in Rotated Sorted Array II (154)leetcode.com/problems/find-minimum-in-rotated-sorted-array-iiHardBinary Search
Maximum Depth of Binary Tree (104)leetcode.com/problems/maximum-depth-of-binary-treeEasyTree, DFS/BFS
Path Sum (112)leetcode.com/problems/path-sumMediumTree, Recursion
Path Sum II (113)leetcode.com/problems/path-sum-iiMediumTree, DFS
Next Greater Element II (503)leetcode.com/problems/next-greater-element-iiMediumStack
Single Number (136)leetcode.com/problems/single-numberEasyBit Manipulation
Intersection of Two Linked Lists (160)leetcode.com/problems/intersection-of-two-linked-listsEasyLinked List
Binary Tree Maximum Path Sum (124)leetcode.com/problems/binary-tree-maximum-path-sumHardTree, DFS
Remove K Digits (402)leetcode.com/problems/remove-k-digitsMediumStack, Greedy
Keys and Rooms (841)leetcode.com/problems/keys-and-roomsMediumDFS/BFS, Graph
Word Break (139)leetcode.com/problems/word-breakMediumDP, Trie
Sort Colors (75)leetcode.com/problems/sort-colorsMediumTwo Pointers
Spiral Matrix (54)leetcode.com/problems/spiral-matrixMediumArray, Simulation
Daily Temperatures
🔗 https://leetcode.com/problems/daily-temperatures/

Binary Tree Level Order Traversal
🔗 https://leetcode.com/problems/binary-tree-level-order-traversal/

Longest Increasing Subsequence
🔗 https://leetcode.com/problems/longest-increasing-subsequence/

Asteroid Collision
🔗 https://leetcode.com/problems/asteroid-collision/

Comments (2)