Amazon interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Amazon
upvote
share-icon
4 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
I began with the basics—brushing up on core data structures and algorithms, solving problems daily on coding platforms, and gradually increasing the difficulty. Initially, I struggled with consistency and complex problems, but over time, I developed my own strategy: understanding the “why” behind each approach rather than simply memorizing patterns. Alongside DSA, I focused on building real-world projects and learning system design concepts, even at a basic level. I also worked on improving my communication and problem-solving approach, which I believe played a crucial role in my interviews.
Application story
I saw an opening for the SDE-1 FTC role on the Amazon portal and applied through a referral. I had been consistently preparing with DSA questions on coding platforms, revising core CS subjects, and building small projects to strengthen my fundamentals. After a few weeks, I received an online assessment link that included coding questions focused on problem-solving and efficiency. Regular practice helped me stay calm during the assessment, and after clearing it, I was shortlisted for interviews — a big step forward in my journey.
Why selected/rejected for the role?
I believe I was selected for this role because I clearly explained my approach to each problem, broke it down step by step, and effectively communicated my thought process during the assessment and interviews. I was also able to optimize my solutions and justify why a particular approach was better in terms of time and space complexity, demonstrating both clarity and depth of understanding.
Preparation
Duration: 1 month
Topics: Data Structures, Pointers, OOPs, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Focus on improving your problem-solving skills.

Tip 2: Solve a good number of questions on coding platforms.

Application process
Where: Referral
Eligibility: No criteria, (Salary Package - 16+ LPA)
Resume Tip
Resume tip

Tip 1: Do not include false information on your resume.

Tip 2: Include some projects on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date21 Mar 2025
Coding problem1

1. Treasure Island Route

Hard
0/120
Asked in company
Amazon

You are given a 2D map, represented by a matrix of characters, that marks the location of a treasure island. Some areas of the map are safe to sail, while others contain dangerous rocks and reefs. Your goal is to find the shortest possible route from your starting position to the treasure.


The map is defined as follows:


'O' represents a safe area to sail.


'D' represents a dangerous area with rocks or reefs, which you cannot enter.


'X' represents the treasure island, your destination.


You must start at the top-left corner (0, 0) of the map, which is always a safe area. From any given block, you can move one step up, down, left, or right. You cannot move into dangerous 'D' blocks or move outside the map boundaries.


Your task is to find and return the minimum number of steps required to reach the treasure island 'X'. If the treasure is unreachable, return -1.


Problem approach

Step 1: I first thought about using Depth-First Search (DFS), but realized it wasn’t suitable here since we need the shortest path, and DFS doesn’t guarantee minimum steps.

Step 2: Then I switched to Breadth-First Search (BFS), as it is ideal for finding the shortest path in an unweighted grid like this one.

Step 3: I implemented BFS starting from the top-left corner (0,0), using a queue to explore each safe cell ('O') in all four directions (up, down, left, right), and tracked visited positions to avoid cycles.

Step 4: For each valid move, I added the new position and step count to the queue. As soon as I found the treasure cell ('X'), I returned the step count as the answer.

Step 5: I tested it with the sample input, and the output was correct. The interviewer was satisfied since it used BFS effectively and was optimized for shortest path discovery.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date24 Mar 2025
Coding problem1

1. Sequential Digits

Moderate
0/80
Asked in company
Amazon

An integer is said to have sequential digits if and only if each digit in the number is one greater than the preceding digit. For example, the numbers 123, 4567, and 89 all have sequential digits.


You are given an inclusive integer range [low, high]. Your task is to find all integers within this range that have sequential digits and return them as a sorted list.


Problem approach

Step 1: I started by trying to generate all numbers from low to high and manually check if each number had sequential digits. However, this approach was inefficient and slow.

Step 2: I realized that instead of checking every number, I could directly generate only valid sequential digit numbers, which would reduce unnecessary computation.

Step 3: I created a base string, "123456789", and used substrings of different lengths (from 2 to 9) to generate sequential numbers. For example, a length of 3 gives “123,” “234,” “345,” and so on.

Step 4: I converted each valid substring into an integer and added it to the result only if it fell within the given range [low,high][low, high][low,high].

Step 5: After generating all valid numbers, I sorted the final result to maintain increasing order and returned it. The solution was efficient and accepted by the platform.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date25 Mar 2025
Coding problem1

1. Evaluate Division

Moderate
15m average time
85% success
0/80
Asked in companies
UberIBMSalesforce

You are given an array of pairs of strings 'EQUATIONS', and an array of real numbers 'VALUES'. Each element of the 'EQUATIONS' array denotes a fraction where the first string denotes the numerator variable and the second string denotes the denominator variable, and the corresponding element in 'VALUES' denotes the value this fraction is equal to.

You are given ‘Q’ queries, and each query consists of two strings representing the numerator and the denominator of a fraction. You have to return the value of the given fraction for each query. Return -1 if the value cannot be determined.

Example :
'EQUATIONS' = { {“a”, ”s”} , {“s”, “r”} }
'VALUES' = { 1.5, 2 }
queries = { {“a”, “r” } }

For the above example (a / s) = 1.5 and (s / r) = 2 therefore (a / r) = 1.5 * 2 = 3.
Problem approach

Step 1: At first, I thought of trying a brute-force approach by checking all equations for each query. But this was inefficient and didn’t scale for larger inputs.

Step 2: Then I realized the problem could be modeled as a graph, where each variable is a node, and the division relationship forms weighted edges between nodes (e.g., a / b = 2.0 means edge from a → b with weight 2.0, and b → a with weight 1/2.0).

Step 3: I built an adjacency list to represent the graph. For each equation, I added both forward and reverse edges.

Step 4: For each query, I performed a DFS traversal starting from the numerator to the denominator, multiplying the weights along the path. If the path existed, I returned the product; if not, I returned -1.0.

Step 5: I handled edge cases like missing nodes or self-division (a/a) separately. Once done, I tested the code with multiple cases, and the solution passed. The interviewer appreciated the graph-based approach.

Try solving now
04
Round
Medium
HR Round
Duration45 minutes
Interview date26 Mar 2025
Coding problem1

1. Behavioral Interview

I was asked Behavioral questions based on Amazon’s Leadership Principles. Some examples included:

  • “Tell me about a time you took ownership of a project.”
  • “Describe a situation where you disagreed with a team member and how you handled it.”
  • “Give an example of when you had to deliver results under tight deadlines.”

These questions assessed how well I aligned with principles like Ownership, Bias for Action, and Deliver Results. I answered them using the STAR format (Situation, Task, Action, Result) to provide structured and clear responses.

Problem approach

Tip 1: Before the interview, I made sure to read and understand the Leadership Principles thoroughly.
Tip 2: Give examples from your own experience.
Tip 3: Relax and stay confident.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Amazon
3085 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
2295 views
1 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Amazon
1593 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
8963 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Samsung
12649 views
2 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Microsoft
5984 views
5 comments
0 upvotes