Amazon | SDE 1 | Interview Questions
- Posted
- 13 May 2025
Summary
I interviewed for an SDE 1 role at Amazon and faced several Data Structures & Algorithms problems across two rounds covering topics like intervals, linked lists, matrices, and stock trading.
How it went
Round 1:
- https://leetcode.com/problems/merge-intervals/
Variation of this problem. Asked to tell the max number of events happening at once on a given day where the intervals denote the start and end day in the month - https://leetcode.com/problems/add-two-numbers/
Round 2:
- https://leetcode.com/problems/spiral-matrix/
- https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
Variation of buy and sell stock where you can hold as many stocks as you wish
Questions asked (4)
- 01
Max Concurrent Events from Intervals
Data Structures & Algorithms
Open the problemVariation of Merge Intervals problem. Asked to tell the maximum number of events happening at once on a given day where the intervals denote the start and end day in the month.
- 02
Add Two Numbers
Data Structures & Algorithms
Open the problemGiven two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.
- 03
Spiral Matrix
Data Structures & Algorithms
Open the problemGiven an m x n matrix, return all elements of the matrix in spiral order.
- 04
Best Time to Buy and Sell Stock II Variation (Unlimited Transactions)
Data Structures & Algorithms
Open the problemVariation of Best Time to Buy and Sell Stock II, where you can hold as many stocks as you wish (i.e., you can complete multiple transactions).