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
- Two SumEasy
- Valid ParenthesesEasy
- Best Time to Buy and Sell StockEasy
- Reverse a Linked ListEasy
- Group AnagramsMedium
- Maximum SubarrayMedium
- 3SumMedium
- Merge IntervalsMedium
- Product of Array Except SelfMedium
- Top K Frequent ElementsMedium
- Kth Largest Element in an ArrayMedium
- Number of IslandsMedium
- Coin ChangeMedium
- Word BreakMedium
- Trapping Rain WaterHard