Amazon SDE-1 Interview Experience

amazon logo
amazon
SDE-1Offer
November 1, 202534 reads

Summary

Applied for SDE-1 role at Amazon, had a successful interview with two coding questions and leadership assessment. Received a job offer.

Full Experience

I was recently interviewed by Amazon—specifically, for SDE-1 on October 31, 2025. I've attached the questions below .

  1. 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

  2. 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

  3. Some Leadership questions

Interview Questions (2)

Q1
Daily Temperatures
Data Structures & AlgorithmsMedium

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

Q2
Gas Station
Data Structures & AlgorithmsMedium

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

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!