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.

From public candidate reports and Amazon's careers pages, checked November 2026. Processes vary by team. AlgoRung is not affiliated with Amazon.

All 24 reported Amazon coding questions

Difficulty
Topic
24 questions
  1. Number of Islands Medium Graphs also Microsoft, Meta, Goldman Sachs +1
  2. Two Sum Easy Arrays & Hashing also Microsoft, Atlassian, Swiggy
  3. Merge k Sorted Lists Hard Heaps also Microsoft
  4. Trapping Rain Water Hard Arrays & Hashing also Microsoft, Goldman Sachs, Salesforce +1
  5. Course Schedule Medium Graphs also Google, Netflix, Uber +1
  6. Top K Frequent Words Medium Heaps also Goldman Sachs
  7. Meeting Rooms II Medium Intervals also Meta
  8. Binary Tree Zigzag Level Order Traversal Medium Trees & BST also Walmart Global Tech
  9. Binary Tree Maximum Path Sum Hard Trees & BST also Google, Adobe
  10. Serialize and Deserialize Binary Tree Hard Trees & BST also Meta, LinkedIn, Oracle
  11. Copy List with Random Pointer Medium Linked List also Microsoft, Meta
  12. Reverse Nodes in k-Group Hard Linked List also Microsoft
  13. Reconstruct Itinerary Hard Graphs also Airbnb
  14. Word Ladder Hard Graphs also Google, LinkedIn
  15. Alien Dictionary Hard Graphs also Meta, Airbnb
  16. Longest Substring Without Repeating Characters Medium Arrays & Hashing also Netflix, Adobe, Flipkart
  17. Group Anagrams Medium Arrays & Hashing also Meta, Oracle
  18. Gas Station Medium Arrays & Hashing also Microsoft
  19. Best Time to Buy and Sell Stock Easy Dynamic Programming also Apple, Netflix, Walmart Global Tech
  20. Daily Temperatures Medium Monotonic Stack
  21. Koko Eating Bananas Medium Binary Search also Goldman Sachs
  22. Flood Fill Easy Graphs
  23. Distribute Coins in Binary Tree Medium Trees & BST also PhonePe
  24. LRU Cache Medium Design Data Structures also Microsoft, Apple, Netflix +4
Also reported, not on AlgoRung yet (2)

Longest Palindromic Substring · Letter Combinations of a Phone Number

How the coding round is scored · The online assessment

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

Coding questions across all companies · Behavioral questions