Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Amazon Team. If you also belong to the team, you can get access from here

Amazon Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Amazon SDE Interview Questions and Answers

Updated 22 Jul 2025

57 Interview questions

A SDE was asked 6mo ago
Q. How do you construct a tree from preorder and postorder traversals?
Ans. 

Construct a binary tree using given preorder and postorder traversals.

  • Preorder traversal: Root -> Left -> Right.

  • Postorder traversal: Left -> Right -> Root.

  • The first element of preorder is the root of the tree.

  • The last element of postorder is also the root of the tree.

  • To build the tree, recursively find left and right subtrees.

  • Example: Preorder: [A, B, D, E, C] and Postorder: [D, E, B, C, A] forms a tre...

🔥 Asked by recruiter 2 times
A SDE was asked 9mo ago
Q. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use ...
Ans. 

Find two numbers in an array that add up to a specific target sum.

  • Use a hash map to store numbers and their indices for quick lookup.

  • Iterate through the array, calculating the complement for each number.

  • Example: For nums = [2, 7, 11, 15] and target = 9, return indices [0, 1].

  • Time complexity is O(n) due to single pass through the array.

SDE Interview Questions Asked at Other Companies

asked in Infosys
Q1. Return Subsets Sum to K Problem Statement Given an integer array ... read more
asked in Nagarro
Q2. Partition to K Equal Sum Subsets Problem Given an array of intege ... read more
asked in Nagarro
Q3. Sort a "K" Sorted Doubly Linked List Given a doubly-linked list w ... read more
asked in Amazon
Q4. Describe a scenario where you were given updates on repaired road ... read more
asked in Nagarro
Q5. Maximum Meetings Selection You are tasked with scheduling meeting ... read more
A SDE was asked 11mo ago
Q. How do you handle pressure?
Ans. 

I handle pressure by staying organized, prioritizing tasks, and taking breaks when needed.

  • I prioritize tasks based on deadlines and importance

  • I break down large tasks into smaller, manageable steps

  • I communicate with team members or supervisors if feeling overwhelmed

  • I practice mindfulness techniques like deep breathing or meditation to stay calm

🔥 Asked by recruiter 5 times
A SDE was asked 12mo ago
Q. Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Ans. 

Calculate the amount of water that can be trapped between elevation bars after rainfall.

  • Use two pointers to traverse the height array from both ends.

  • Maintain left and right max heights to calculate trapped water.

  • Example: For heights [0,1,0,2,1,0,1,3,2,1,2,1], the trapped water is 6.

What people are saying about Amazon

View All
sparklingfettuccine
Verified Icon
2w
currently not working
Amazon CSA role Hyderabad
I want to know how much time does it takes for Amazon to approve my badge photo for permanent work from home CSA role as I submitted my badge photo 4 days ago and still did not receive any information regarding my bgv as I was told I'll receive it soon.
Got a question about Amazon?
Ask anonymously on communities.
A SDE was asked 12mo ago
Q. Given n ropes of different lengths, connect them into a single rope with minimum cost. The cost to connect two ropes is equal to the sum of their lengths. Find the optimal cost to connect all the ropes.
Ans. 

Combine ropes to minimize cost by always combining the two shortest ropes

  • Sort the ropes in ascending order

  • Combine the two shortest ropes at each step

  • Update the cost and add the new combined rope back to the list

  • Repeat until only one rope is left

A SDE was asked
Q. Implement a linked list.
Ans. 

A linked list is a data structure consisting of nodes where each node points to the next node in the sequence.

  • Create a Node class with data and next pointer

  • Initialize a head pointer to null

  • Add nodes by updating next pointers

Amazon HR Interview Questions

1.1k questions and answers

Q. Are you comfortable working in rotational shifts?
Q. Why do you want to join a non-IT company?
Q. What process improvements did you implement in your previous organization?
A SDE was asked
Q. Given a linked list, detect if there is a loop in it. If a loop exists, find the node where the loop begins.
Ans. 

To find a loop in a linked list, use Floyd's Tortoise and Hare algorithm.

  • Use two pointers, slow and fast, to traverse the linked list.

  • If there is a loop, the two pointers will eventually meet at the same node.

  • To find the start of the loop, reset one pointer to the head and move both pointers at the same pace.

Are these interview questions helpful?
A SDE was asked
Q. Explain the Big O notation of Orthogonal Array.
Ans. 

BigO of OA refers to the time complexity analysis of the algorithm OA.

  • BigO notation is used to describe the worst-case time complexity of an algorithm.

  • It provides an upper bound on the growth rate of the algorithm's time complexity as the input size increases.

  • For example, if an algorithm has a time complexity of O(n^2), it means that the algorithm's running time grows quadratically with the input size.

🔥 Asked by recruiter 3 times
A SDE was asked
Q. Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get(key) - Get the value (will always be positive) of the key if the key exists in the ...
Ans. 

An LRU cache efficiently stores a limited number of items, evicting the least recently used when full.

  • LRU stands for Least Recently Used, a cache eviction policy.

  • It maintains a fixed size and removes the least recently accessed item when full.

  • Commonly implemented using a combination of a hash map and a doubly linked list.

  • Example: If a cache size is 2 and items 1, 2, 3 are accessed, 1 and 2 are stored, then 3 evict...

A SDE was asked
Q. In Spring, are objects immutable or mutable?
Ans. 

Spring is immutable

  • Spring framework is immutable

  • Once a Spring bean is created, its state cannot be changed

  • Any modifications to a Spring bean result in a new instance being created

Amazon SDE Interview Experiences

46 interviews found

SDE Interview Questions & Answers

user image Anonymous

posted on 21 May 2015

Interview Questionnaire 

15 Questions

  • Q1. There is a 12 km road and a contractor who is in-charge of repairing it. Contractor updates you about the work which is done in patches. Like “Road between 3.2 km to 7.9 km repaired ”, “Road between 1.21 k...
  • Ans. 

    The longest continuous patch of a road being repaired by a contractor is determined.

    • Iterate through the updates and keep track of the start and end points of each patch

    • Calculate the length of each patch and update the longest patch if necessary

    • Return the start and end points of the longest patch

  • Answered by AI
  • Q2. Several Questions were asked from my project
  • Q3. There are billions and billions of stars and at any point of time you need to tell the closest million to earth. In what way I should take input for the stars and what all do I need to represent one. I use...
  • Q4. Implementation of Least Recently Used Cache. I started with O(n) solution using queue and ended up with O(1) solution using heap and doubly linked list
  • Ans. 

    Implementing a Least Recently Used (LRU) Cache using a combination of a doubly linked list and a hash map for O(1) access.

    • Use a hash map to store key-value pairs for O(1) access.

    • Maintain a doubly linked list to track the order of usage.

    • When accessing an item, move it to the front of the list.

    • When adding a new item, check if the cache is full; if so, remove the least recently used item from the back of the list.

    • Example:...

  • Answered by AI
  • Q5. Basically it was from snakes and ladders game. There is n x n matrix and you are at starting position. What is the no. of ways to reach n-square position if your next move will be dependent on number on di...
  • Q6. Write an efficient program to count number tree structures that can be made using n number of nodes. Basically T(n)=summation (T(i) * T(n-i-1)). I used DP as there are a lot of sub-problems used again and ...
  • Ans. 

    The program counts the number of tree structures that can be made using n nodes.

    • Use dynamic programming to solve the problem efficiently

    • Break down the problem into subproblems and store their solutions in an array

    • Iterate through the array to calculate the number of tree structures

    • The time complexity of the program is O(n^2)

  • Answered by AI
  • Q7. There are n nuts and n bolts represented in two different arrays and a function is_fit(nut_i, bolt_j) which returns 0 if its perfectly fit, 1 if it’s a tight fit and -1 if its loose fit. I was asked to arr...
  • Ans. 

    Arrange nuts and bolts so that every nut fits perfectly with the bolt in the same position.

    • Sort both arrays in the same order using a comparison function

    • Use a binary search to find the matching bolt for each nut

    • Repeat until all nuts are matched with bolts

  • Answered by AI
  • Q8. Find the kth largest element in a BST. Well that was easy JWe discussed about projects and he asked reasons for leaving present company
  • Q9. How to know the time between someone writes Amazon.com and the page appears on his browser for a particular user. I impressed him by suggesting to use dummy request packets after the page is loaded complet...
  • Ans. 

    Measure the time from typing a URL to page load using network requests and timestamps.

    • Use browser developer tools to monitor network requests and timestamps.

    • Implement a JavaScript function to capture the time when the URL is entered.

    • Send a dummy request after the page load to measure response time.

    • Utilize performance APIs like 'performance.now()' for precise timing.

    • Log the time taken for DNS resolution, TCP connection,...

  • Answered by AI
  • Q10. He showed me the Amazon page they were working at that time and I asked me to suggest 5 changes in 5 minutes
  • Q11. -----/
  • Q12. Behavioral questions like dealing with manager in case of conflicts,
  • Q13. Why would you choose Amazon and not Flipkart if you have offers from both
  • Q14. About my projects and contribution to present company
  • Q15. Reasons for leaving present company, ,

Interview Preparation Tips

Round: Test
Experience: Q1. Given a string you need to print all possible strings that can be made by placing spaces (zero or one) in between them. For example : ABC -> A BC, AB C, ABC, A B CQ2. Given a tree where there are three pointers (left_pointer, right_pointer and a next_right_pointer). Left and right pointers are set like that of any general binary tree. We were asked to set the next_right_pointer to the next node in the level order traversal for the same level. This implies means for the last node in every level it will be null for rest it will be pointer to the next node in level order traversal.
Duration: 60 minutes
Total Questions: 2

General Tips: TIPS:1. Don’t jump into solutions, ask about the type of input that is given and output that is expected.2. The interviewer always tries to take you to the most optimal solution so listen to what all he says. Many a times they are big hints !!!3.Be honest.4. Keep believing that you will get the job .
College Name: NA

Skills evaluated in this interview

SDE Interview Questions & Answers

user image Anonymous

posted on 12 Jan 2025

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Referral and was interviewed in Dec 2024. There were 2 interview rounds.

Round 1 - Coding Test 

OA consisted of two DSA questions.

Round 2 - Technical 

(1 Question)

  • Q1. Was asked dsa based questions.

SDE Interview Questions & Answers

user image Vijayalakshmi Chidambaram

posted on 21 Nov 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. General behavioral kinda questions on my last project
  • Q2. LLD question where coding in 30 mins

SDE Interview Questions & Answers

user image Anonymous

posted on 9 Dec 2024

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
-
Result
Selected Selected

I applied via LinkedIn and was interviewed in Nov 2024. There were 3 interview rounds.

Round 1 - Aptitude Test 

Simple Normal DSA Question

Round 2 - Coding Test 

Focus on DSA and optimization

Round 3 - Coding Test 

Project Discussion and some Date structure questions

Interview Preparation Tips

Interview preparation tips for other job seekers - It was normal simple

SDE Interview Questions & Answers

user image Anonymous

posted on 12 Jan 2025

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
Selected Selected
Round 1 - Coding Test 

Good DSA Questions
Recursion, Graph and Tree

SDE Interview Questions & Answers

user image Anonymous

posted on 12 Sep 2024

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
-
Result
No response

I applied via Company Website and was interviewed in Aug 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. String pattern matching
  • Q2. Behavioral questions
Round 2 - Technical 

(2 Questions)

  • Q1. Behavioral questions
  • Q2. BFS file system

SDE Interview Questions & Answers

user image Anonymous

posted on 31 Dec 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Assignment 

There are two straightforward data structure and algorithm questions, while the others primarily consist of multiple-choice questions, mostly focusing on nodes and Python.

Round 2 - Coding Test 

In the telephonic round, they primarily assess your problem-solving skills. The interviewer asked me a binary search question, which I was able to solve, but it took me a considerable amount of time to arrive at the solution. This was likely the main reason for my rejection.

SDE Interview Questions & Answers

user image Aryan Verma

posted on 28 Oct 2024

Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Aptitude Test 

Find the order of excecution in sql

Interview Preparation Tips

Interview preparation tips for other job seekers - nothing as such go with the flow....

SDE Interview Questions & Answers

user image Yatharth Singh

posted on 5 Dec 2024

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.

Round 1 - Coding Test 

It was a one hour DS Algo Round based on recursion and DP. I managed to get to the logic for the problem but couldn't execute compltely due to time constraints

SDE Interview Questions & Answers

user image Anonymous

posted on 29 Jun 2024

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in May 2024. There were 2 interview rounds.

Round 1 - Coding Test 

HACKER RANK TEST WITH MEDIUM LEVEL QUESTIONS

Round 2 - Technical 

(3 Questions)

  • Q1. CREATE A LINKED LIST
  • Q2. FIND THE LOOP IN LINKED LIST
  • Ans. 

    To find a loop in a linked list, use Floyd's Tortoise and Hare algorithm.

    • Use two pointers, slow and fast, to traverse the linked list.

    • If there is a loop, the two pointers will eventually meet at the same node.

    • To find the start of the loop, reset one pointer to the head and move both pointers at the same pace.

  • Answered by AI
  • Q3. QUESTION BASED ON DYNAMIC PROGRAMMING

Interview Preparation Tips

Topics to prepare for Amazon SDE interview:
  • Data Structures
  • Algorithms
  • Java
Interview preparation tips for other job seekers - PREPARE WELL ON DATA STRUCTURES AND ALGORITHMS

Skills evaluated in this interview

SDE Interview Questions & Answers

user image Anonymous

posted on 24 Aug 2024

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Company Website and was interviewed in Jul 2024. There were 5 interview rounds.

Round 1 - Coding Test 

SLiding window problem

Round 2 - Coding Test 

Tree problem variation

Round 3 - Coding Test 

DP Problems same questions but with different cases

Round 4 - HR 

(2 Questions)

  • Q1. Experience with last company
  • Ans. 

    I worked at a tech startup where I developed web applications and implemented new features.

    • Led a team of developers to successfully launch a new mobile app

    • Implemented a new payment gateway system to improve user experience

    • Collaborated with product managers to prioritize and deliver features on time

  • Answered by AI
  • Q2. How you handle pressure
Round 5 - Behavioral 

(1 Question)

  • Q1. Behavioural ROund

Amazon Interview FAQs

How many rounds are there in Amazon SDE interview?
Amazon interview process usually has 2-3 rounds. The most common rounds in the Amazon interview process are Coding Test, Technical and Resume Shortlist.
How to prepare for Amazon SDE interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Amazon. The most common topics and skills that interviewers at Amazon expect are Clinical SAS Programming, Architectural Design, C++, Computer Science and Analytical Chemistry.
What are the top questions asked in Amazon SDE interview?

Some of the top questions asked at the Amazon SDE interview -

  1. There is a 12 km road and a contractor who is in-charge of repairing it. Contra...read more
  2. There are n nuts and n bolts represented in two different arrays and a function...read more
  3. Basically it was from snakes and ladders game. There is n x n matrix and you ar...read more
How long is the Amazon SDE interview process?

The duration of Amazon SDE interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4.5/5

based on 37 interview experiences

Difficulty level

Easy 14%
Moderate 71%
Hard 14%

Duration

Less than 2 weeks 53%
2-4 weeks 32%
4-6 weeks 5%
6-8 weeks 5%
More than 8 weeks 5%
View more

Interview Questions from Similar Companies

Uber Interview Questions
4.2
 • 157 Interviews
Expedia Group Interview Questions
3.6
 • 79 Interviews
LinkedIn Interview Questions
4.2
 • 71 Interviews
OLX Interview Questions
3.8
 • 63 Interviews
Facebook Interview Questions
4.4
 • 55 Interviews
Uplers Interview Questions
3.9
 • 43 Interviews
Groupon Interview Questions
3.2
 • 42 Interviews
Fareportal Interview Questions
3.2
 • 32 Interviews
Yahoo Interview Questions
4.6
 • 30 Interviews
Airbnb Interview Questions
3.7
 • 25 Interviews
View all
Amazon SDE Salary
based on 336 salaries
₹22.7 L/yr - ₹42.4 L/yr
40% more than the average SDE Salary in India
View more details

Amazon SDE Reviews and Ratings

based on 26 reviews

3.5/5

Rating in categories

3.5

Skill development

3.1

Work-life balance

3.9

Salary

2.5

Job security

3.4

Company culture

3.1

Promotions

3.4

Work satisfaction

Explore 26 Reviews and Ratings
SDE

Chennai

0-8 Yrs

Not Disclosed

Explore more jobs
Customer Service Associate
4k salaries
unlock blur

₹1.8 L/yr - ₹5 L/yr

Transaction Risk Investigator
3.1k salaries
unlock blur

₹2.9 L/yr - ₹6.5 L/yr

Associate
3.1k salaries
unlock blur

₹2 L/yr - ₹5.5 L/yr

Senior Associate
2.6k salaries
unlock blur

₹4 L/yr - ₹9 L/yr

Software Developer
2.5k salaries
unlock blur

₹23.5 L/yr - ₹43.8 L/yr

Explore more salaries
Compare Amazon with

Flipkart

3.9
Compare

TCS

3.6
Compare

Google

4.3
Compare

Netflix

4.0
Compare
write
Share an Interview