AMAZON · CODING QUESTIONS
Amazon coding interview questions
The data structures and algorithms questions candidates report from Amazon interviews, linked to AlgoRung problems with an editor, hidden tests, an animated walkthrough and solutions in four languages. Most asked topics: Arrays & Hashing, Graphs, Trees & BST, Heaps.
All 24 reported Amazon coding questions
- Number of Islands Medium Graphs also Microsoft, Meta, Goldman Sachs +1
- Two Sum Easy Arrays & Hashing also Microsoft, Atlassian, Swiggy
- Merge k Sorted Lists Hard Heaps also Microsoft
- Trapping Rain Water Hard Arrays & Hashing also Microsoft, Goldman Sachs, Salesforce +1
- Course Schedule Medium Graphs also Google, Netflix, Uber +1
- Top K Frequent Words Medium Heaps also Goldman Sachs
- Meeting Rooms II Medium Intervals also Meta
- Binary Tree Zigzag Level Order Traversal Medium Trees & BST also Walmart Global Tech
- Binary Tree Maximum Path Sum Hard Trees & BST also Google, Adobe
- Serialize and Deserialize Binary Tree Hard Trees & BST also Meta, LinkedIn, Oracle
- Copy List with Random Pointer Medium Linked List also Microsoft, Meta
- Reverse Nodes in k-Group Hard Linked List also Microsoft
- Reconstruct Itinerary Hard Graphs also Airbnb
- Word Ladder Hard Graphs also Google, LinkedIn
- Alien Dictionary Hard Graphs also Meta, Airbnb
- Longest Substring Without Repeating Characters Medium Arrays & Hashing also Netflix, Adobe, Flipkart
- Group Anagrams Medium Arrays & Hashing also Meta, Oracle
- Gas Station Medium Arrays & Hashing also Microsoft
- Best Time to Buy and Sell Stock Easy Dynamic Programming also Apple, Netflix, Walmart Global Tech
- Daily Temperatures Medium Monotonic Stack
- Koko Eating Bananas Medium Binary Search also Goldman Sachs
- Flood Fill Easy Graphs
- Distribute Coins in Binary Tree Medium Trees & BST also PhonePe
- LRU Cache Medium Design Data Structures also Microsoft, Apple, Netflix +4
No questions match.
Also reported, not on AlgoRung yet (2)
Longest Palindromic Substring · Letter Combinations of a Phone Number
Questions people ask
What coding questions does Amazon ask?
Candidates most often report Number of Islands, Two Sum, Merge k Sorted Lists, Trapping Rain Water, Course Schedule. The full list of 24 reported questions is on this page, each linked to a practice problem with solutions.
Which topics should I study for the Amazon coding interview?
arrays and strings, hash maps, trees, graphs, heaps, linked lists. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.
How hard are Amazon coding questions?
Of the reported questions on AlgoRung, 3 are easy, 13 medium and 8 hard. Expect mostly medium problems, with follow-ups that change a constraint.
Coding questions at other companies
- Microsoft
- Meta
- Apple
- Netflix
- Uber
- Airbnb
- Stripe
- Atlassian
- Goldman Sachs
- Salesforce
- Oracle
- Adobe
- Flipkart
- Walmart Global Tech
- PhonePe
- Swiggy
- Razorpay
Coding questions across all companies · Behavioral questions