Coding problems · by company style

15 Amazon interview problems, solved step by step.

Amazon’s coding rounds favour arrays, strings and hashing, with a steady share of graphs and heaps. These are the classic problems that practise them. No company publishes its questions; this is the practice set candidates commonly use. Each one is solved in 22 languages from brute force to optimal, with code you can run on the page.

0/15 solved
  1. Two SumEasy
  2. Valid ParenthesesEasy
  3. Best Time to Buy and Sell StockEasy
  4. Reverse a Linked ListEasy
  5. Group AnagramsMedium
  6. Maximum SubarrayMedium
  7. 3SumMedium
  8. Merge IntervalsMedium
  9. Product of Array Except SelfMedium
  10. Top K Frequent ElementsMedium
  11. Kth Largest Element in an ArrayMedium
  12. Number of IslandsMedium
  13. Coin ChangeMedium
  14. Word BreakMedium
  15. Trapping Rain WaterHard