Amazon SDE-1 Interview Experience
- Result
- Offer
- Posted
- 1 Nov 2025
Summary
Applied for SDE-1 role at Amazon, had a successful interview with two coding questions and leadership assessment. Received a job offer.
How it went
I was recently interviewed by Amazon—specifically, for SDE-1 on October 31, 2025. I've attached the questions below .
Given an array of integers, temperatures, that represents daily temperatures, return an array, output, where each element, output[i], indicates the number of days you need to wait after the day to experience a warmer temperature if there is no future day with a higher temperature, set output[i] to 0.
input temp : 30 60 90
output : 1 1 0
Given a car with an unlimited gas tank and two arrays, `gas` and `cost`, where `cost[i]` is the gas needed to go from station i to i+1, find the starting index in `gas` from which you can complete a full loop, collecting `gas[i]` and spending `cost[i]` at each station. Start with an empty tank. Return -1 if it's not possible; otherwise, return the unique index.
Example:
gas: 1 2 3 4 5
cost: 3 4 5 1 2
Output: Index 3
Some Leadership questions
Questions asked (2)
- 01
Daily Temperatures
Data Structures & Algorithms · Medium
Given an array of integers, temperatures, that represents daily temperatures, return an array, output, where each element, output[i], indicates the number of days you need to wait after the day to experience a warmer temperature if there is no future day with a higher temperature, set output[i] to 0.
input temp : 30 60 90
output : 1 1 0
- 02
Gas Station
Data Structures & Algorithms · Medium
Given a car with an unlimited gas tank and two arrays, `gas` and `cost`, where `cost[i]` is the gas needed to go from station i to i+1, find the starting index in `gas` from which you can complete a full loop, collecting `gas[i]` and spending `cost[i]` at each station. Start with an empty tank. Return -1 if it's not possible; otherwise, return the unique index.
Example:
gas: 1 2 3 4 5
cost: 3 4 5 1 2
Output: Index 3