Amazon DS & Algo Round Interview Questions
This list contains commonly asked DSA questions in Amazon for SDE roles, including SDET and intern positions. It also includes questions from Bar Raiser rounds.
If you are looking for Amazon LLD questions, then you can find them here: https://codezym.com/lld/amazon
If you have Amazon interviews already scheduled, then this list is for you. Use it for final preparation of your DSA interview.
Idea is to solve Amazon tagged questions at least 2–3 times, rather than solving a lot of new questions just once.
Doing questions multiple times will help you understand the patterns and when you see a question which is rephrased differently but has same solution, you will be able to do it.
Questions which you can directly find on LeetCode (free ones)
- Sliding Window Maximum https://leetcode.com/problems/sliding-window-maximum/description/
- Course Schedule https://leetcode.com/problems/course-schedule/description/
- Course Schedule II https://leetcode.com/problems/course-schedule-ii/description/
- Design Browser History https://leetcode.com/problems/design-browser-history/description/
- House Robber https://leetcode.com/problems/house-robber/description/
- House Robber II https://leetcode.com/problems/house-robber-ii/description/
- Similar String Groups https://leetcode.com/problems/similar-string-groups/description/
- Reverse Nodes in k-Group https://leetcode.com/problems/reverse-nodes-in-k-group/
- Insert Delete GetRandom O(1) https://leetcode.com/problems/insert-delete-getrandom-o1/description/
- Number of Islands https://leetcode.com/problems/number-of-islands/
- Longest Substring Without Repeating Characters https://leetcode.com/problems/longest-substring-without-repeating-characters/description/
- Serialize and Deserialize Binary Tree https://leetcode.com/problems/serialize-and-deserialize-binary-tree/description/
- Valid Parentheses https://leetcode.com/problems/valid-parentheses/description/
- Remove Invalid Parentheses https://leetcode.com/problems/remove-invalid-parentheses/description/
- Jump Game https://leetcode.com/problems/jump-game/description/
- Jump Game II https://leetcode.com/problems/jump-game-ii/description/
- Search in Rotated Sorted Array https://leetcode.com/problems/search-in-rotated-sorted-array/
- Maximum Sum Circular Subarray https://leetcode.com/problems/maximum-sum-circular-subarray/description/
- Maximum Good Subarray Sum https://leetcode.com/problems/maximum-good-subarray-sum/description/
- Lowest Common Ancestor of a Binary Tree https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
- Max Area of Island https://leetcode.com/problems/max-area-of-island/description/
- Island Perimeter https://leetcode.com/problems/island-perimeter/description/
- Minimum Number of Arrows to Burst Balloons https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/description/
- Balance a Binary Search Tree https://leetcode.com/problems/balance-a-binary-search-tree/description/
- First Missing Positive https://leetcode.com/problems/first-missing-positive/description/
- Top K Frequent Elements https://leetcode.com/problems/top-k-frequent-elements/
- Remove K Digits https://leetcode.com/problems/remove-k-digits/
- Delete and Earn https://leetcode.com/problems/delete-and-earn/description/
- Cheapest Flights Within K Stops https://leetcode.com/problems/cheapest-flights-within-k-stops/description/
- Rotting Oranges https://leetcode.com/problems/rotting-oranges/description/
- Search a 2D Matrix II https://leetcode.com/problems/search-a-2d-matrix-ii/description/
- Boundary of Binary Tree https://leetcode.com/problems/boundary-of-binary-tree/description/
- Separate Squares I https://leetcode.com/problems/separate-squares-i/description/
- Separate Squares II https://leetcode.com/problems/separate-squares-ii/description/
- Car Pooling https://leetcode.com/problems/car-pooling/description/
- Longest Palindromic Substring https://leetcode.com/problems/longest-palindromic-substring/description/
- Boats to Save People https://leetcode.com/problems/boats-to-save-people/description/
- Detonate the Maximum Bombs https://leetcode.com/problems/detonate-the-maximum-bombs/description/
Below list is updated frequently. Reflects top Amazon DS & Algo questions in last 6 months.
Founder, CodeZym