Amazon interview question bank - by Harine
Amazon interview question bank - by Harine
This question bank contains questions from both on campus as well as off campus Amazon
interviews. 98% of the questions are present on LeetCode and the other 2% can be found on
GFG. None of the questions are newly innovated or proprietary to Amazon, they are classic DSA
questions. By following Neetcode 150 & Strivers SDE sheet one can cover most of the patterns in
these questions. Here, the majority of the questions are medium level. Amazon also likes asking
sliding window and binary tree questions more often.
BASIC DETAILS:
1. Most interviews were 60-70 minutes long if conducted off campus and exactly 1 hour long
or even lesser if conducted on campus
2. (Mostly) Must solve at least 2 coding questions per interview to pass
3. Interviewers expected approach explanation before coding
4. A brute force / naive approach is expected to be stated first, with a higher time
complexity, and then the optimal approach must be stated, with a lower time complexity.
5. Must know time, space complexity of approach, it is often noted down by the interviewer
6. Live code (for typing code) & Amazon Chime (for the video call) are the platforms used
7. 2 or more employees will attend the interview, where the main employee conversing with
you will stay with you on the Live code platform and paste the question, explain it and
guide you with hints if needed. The other employees check eyeball movement and if
you’re attending the interview ethically or not.
STRINGS:
• Remove adjacent duplicates (https://www.geeksforgeeks.org/python-program-to-
recursively-remove-all-adjacent-duplicates/)
• Reorganize string (https://leetcode.com/problems/reorganize-string/description/)
LINKED LISTS:
• Linked list cycle (https://leetcode.com/problems/linked-list-cycle/)
• Find intersection/junction of two linked lists
(https://leetcode.com/problems/intersection-of-two-linked-lists/)
GRAPHS:
• Find all paths between 2 nodes (Graph traversal)
• Number of islands (https://leetcode.com/problems/number-of-islands/description/)
• Shortest path to reach end of grid (https://leetcode.com/problems/shortest-path-in-a-
grid-with-obstacles-elimination/description/)
• Rat in a maze (https://takeuforward.org/data-structure/rat-in-a-maze/)
• Course scheduling (https://leetcode.com/problems/course-schedule/description/)
• Rotting Oranges (https://leetcode.com/problems/rotting-oranges/)
DYNAMIC PROGRAMMING:
• Max profit in job scheduling (https://leetcode.com/problems/maximum-profit-in-job-
scheduling/description/)
• Coin change (https://leetcode.com/problems/coin-change/description/)
• Max path sum with obstacles (2D DP - Hard)