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
4.1

based on 23.9k Reviews

Filter interviews by

Amazon SDE Interview Questions, Process, and Tips

Updated 9 Dec 2024

Top Amazon SDE Interview Questions and Answers

  • 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 ...read more
  • Q2. 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 i ...read more
  • Q3. A stream of data is coming. Maintain records in a page and mechanism to see previous and next page. (Concept of Doubly Linked List) (It is always advisable to ask questio ...read more
View all 47 questions

40 Amazon SDE Interview Experiences

107 questions found

Sort by: Popular

SDE Interview Questions

user image Anonymous

posted on 16 Feb 2023

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

I applied via Referral and was interviewed before Feb 2022.

3 Interview Rounds

1

Resume Shortlist Round

Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
2

Technical Round (1 Question)

  • Q1. Modified version of Knapsack problem
3

One-on-one Round (1 Question)

  • Q1. Graph based DSA question

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident and be very honest. Don't hesitate to seek validation from the interviewer.

Skills evaluated in this interview

SDE Interview Questions

user image Anonymous

posted on 7 Jun 2015

4 Interview Rounds

Interview Questions

Interview Preparation Tips

Round: Test
Total Questions: 29

Round: Technical Interview
Tips: assume array is already sorted)space complexity-O(1),time complexity-O(n)

College Name: NA

Skills evaluated in this interview

Get interview-ready with top interview questions

SDE Interview Questions

user image Anonymous

posted on 4 Jun 2015

5 Interview Rounds

Interview Questions

  • Q1. In a binary tree, a random pointer is given in each node. If this pointer pointing other than any successor of the node then set it as NULL. Otherwise let it re...read more Add Answer
  • Q2. You will be given the number of pairs of parenthesis. Find out the total possible valid unique combinations and there should not be any duplicity. Write code View Answers (1)
  • Q3. Given an in-order traversal of a special binary tree having property that the node is always greater than its left and right child. Construct the tree and write...read more View Answers (1)
  • Q4. Find top 10 trending words inserted by users in sites like twitter. Only algorithm View Answers (1)
  • Q5. Write an efficient code to find the first occurrence of 1 in a sorted binary array View Answers (1)
  • Q6. Remove duplicated from a string in O(n) without using hash View Answers (1)
  • Q7. Ind the first occurrence of 1 in a sorted infinite binary tree View Answers (1)

Interview Preparation Tips

Round: Telephonic
Experience: Q1. For a given number, find the next greatest number which is just greater than previous one and made up of same digits.

Q2. Find immediate ancestor of a given Node

Q3. Clone the linked list having an extra random pointer in nodes which is pointing random node in the list.

Round: HR Interview
Experience: Amazon has many visitors to its site. And it tracks what pages the customers visited, etc and other stuff.Make an efficient data structure for storing 3 days of information of all those customers who have visited site exactly two different days and searched more than 3 unique pages of the site in those 2 days.So whoever visited site exactly two days out of these three days and visited more then 3 unique pages should be in the contact list.

College Name: NA

Skills evaluated in this interview

SDE Interview Questions

user image Anonymous

posted on 2 Jun 2015

1 Interview Round

Interview Questions

  • Q1. Find top 10 selling product given the count of sales of each product View Answers (1)
  • Q2. Design a valet parking lot with basic use-case of assigning ticket to customer and retrieving the car later. Three sizes available. Use best fit and nearest dis...read more View Answers (1)

Interview Preparation Tips

College Name: NA

Skills evaluated in this interview

Amazon interview questions for designations

 SDE-2

 (16)

 SDE Intern

 (15)

 SDE-1 Position

 (2)

 SDE (Software Development Engineer)

 (26)

 Customer Service Associate

 (145)

 Customer Service Executive

 (101)

 Transaction Risk Investigator

 (100)

 Associate

 (81)

SDE Interview Questions

user image Anonymous

posted on 25 May 2015

4 Interview Rounds

Interview Preparation Tips

Round: Telephonic round
Experience: 1. An array is given with element name and their respective pH values. Print the combination of 2 elements which make a neutral compound.

A discussion started and best solution was O(n) time complexity and O(1) space complexity.

Then I got call for F2F interviews and here are those-

Round: Technical Interview
Experience: 1. Print Matrix in spiral form.

2. A store have n customers and any 1 can visit them any time through out the year.Data is stored in a file.Design a data structure to find given person visited on so n so date or not.

Round: Technical Interview
Experience: 1.There are N packages P1, P2…Pn. A package may depend on another or many other for its compilation. Given a matrix of dependency, find a sequence of package compilation.

2.A 2D matrix is given, with each elements representing number of gold coin at that position. I have to travel from (0,0) to last element of matrix collecting maximum no. of coins.I can travel either right of an element or down of it.

3.In Galaxy there are trillions of stars. I am provide distance of every star from earth. Tell me nearest 1Million stars to earth, provided with best time and space complexity.

Round: Technical Interview
Experience: 1. Implement LRU.

2.In Android phones we have 3X3 grid for making a pattern. Given a length, find number of combinations for that length in that grid.

Round: HR Interview
Experience: 1. Project deep discussion.
2. Few given scenarios and how you will tackle.
3. Strengths and weaknesses.
4. Given a file with many statements. Print all the strings with their anagrams through the file.Logic to check anagrams and to store them

Round: Technical Interview
Experience: 1. Behavioral Questions like
>Why you want to leave your organization?
>What is most challenging work you have done till date?
>Why you want to join Amazon?
etc.
2. Which data structure you know?
3.Say I have few words and their meaning, and I want to store them which DS will you use and why.
I started with Hashmap and we kept on discussing about pros and cons.Finally ended up with trie.He asked me to write code for it, for adding new word and for fetching meaning from Trie.The whole process started in 1st week and yesterday got a call from HR for I am invited to be part of Amazon.

College Name: NA

SDE Interview Questions

user image Anonymous

posted on 25 May 2015

4 Interview Rounds

Interview Questions

  • Q1. Find the second largest element in an array. (-----/) View Answers (1)
  • Q2. Given a sorted array which can have repeated elements, find the occurrence of an element. (Most optimal solution is O(logn) – Using binary search to find start ...read more View Answers (1)
  • Q3. Make a data structure and implement an algorithm to print all the files in a directory. (the root directory can have sub-directories too.) I used an n-ary tree ...read more View Answers (1)
  • Q4. He asked some question about my CV Add Answer
  • Q5. Print a matrix diagonally. (-----/) View Answers (1)
  • Q6. DFS of binary tree, n-ary tree View Answers (1)
  • Q7. Then he asked some question from other subjects. OS – Scheduling DBMS – Normalization, Transaction OOPS – Abstraction Add Answer

Interview Preparation Tips

Round: Test
Experience: They had an online aptitude test on day 1. It was 90 minutes: 20 MCQs + 2 coding questions (choice between C/C++/Java for coding). MCQs were based on DSA, OS, and Math. They were apparently difficult.

Round: Test
Experience: 1. Keypad problem ( -----/ )– Little difficult problem on backtracking.2. Given an array, find the count of impossible triangle ( -----/ )

Round: Test
Experience: Questions involved DSA and strongly based on optimising the code:



1. Given a linked list, reverse K nodes in it eg :- 1->2->3->4->5->NULL , k = 3 3->2->1->5->4 2. Search for an element in an array which has elements who’s values are first increasing and then decreasing. (Use modified binary search)
Duration: 60 minutes
Total Questions: 2

College Name: NA

Skills evaluated in this interview

SDE Interview Questions

user image Anonymous

posted on 25 May 2015

3 Interview Rounds

Interview Preparation Tips

Round: Test
Experience: Online Round :(Duration – 90 minutes)20 MCQs to solve and 2 coding questions. 20MCQs were on Algorithms,Data Structures, C Output, Quantitative Aptitude, etc.

Coding questions were of 10 marks each.

MCQ’s had negative marking.

Correct : +1

Wrong : -0.25Q1– Given an array of numbers, arrange them in an alternate fashion such that every number is followed by a number of opposite sign. Also the order was to be maintained. If the count of negative numbers is more keep the extra at last in array and same for positive numbers.Example :

Input: -3 -2 6 0 7 -1 -8

Output: -3 6 -2 0 -1 7 -8Q2– String of characters as arranged in a cellphone i.e.

1- NULL

2-a,b,c

3-d,e,f

4-g,h,i

.

.

.

9-w,x,y,z

0-NULLPrint all combinations for given number of digits(k) in lexicographical order .

Constraint : 1<=k<4

For Example : Input = 234

Output : adg adh adi aeg aeh aei afg afh afi bdg bdh bdi beg beh bei bfg bfh bfi cdg cdh cdi ceg che dei cfg cfh cfi

Round: TECHNICAL INTERVIEW
Experience: Q1– Design a shuffle function which would play songs randomly in your device (unique song_id) and code it.

After i gave him a solution with hash function , he asked me to improve the algorithm such that once a song is played it should be played only when all the other songs are played,

Solution’s Complexity : Space – O(n) , Time – O(1) ; n—> number of songs

After that he asked me to improve my solution and do it without using extra space.

Solution’s Complexity : Space – O(1) , Time – O(n) ; n—>number of songs

Hint : Maintain indices and once a song is played shift it in range of played songs index.

After that i was asked about each part of the hash function and how i came up with that.Q2– Add two linked lists. And code it.Input : 1->2->3->4->NULL

8->2->NULL

Output : 1->3->1->6->NULLFirst he asked to do it without recursion and then with recursion.We also talked about theproblem we face if we store the value of the linked list in an integer or long if the number of digits were above certain limits in the non-recursive function.

Round: TECHNICAL INTERVIEW
Experience: Q1 – Find the largest sub tree which is binary search tree in a given Binary Tree. Then to optimize it and then asked me to code it.
Q2 – Given a linked list with a next pointer and an arbitrary pointer pointing to any node in the list , copy the linked list.After i gave him a solution which changed the links of the initial linked list, he asked me to do without changing the links.So i gave him a O(n^2) solution . He asked me to give another way or optimize my solution.He helped me to figure out the solution.Hint – Hash map.The interviewers were really helping and supporting and were more interested in seeing the efforts you make and the way you get to the logic.They help throughout by giving hints.

College Name: NA

SDE Interview Questions

user image Anonymous

posted on 24 May 2015

6 Interview Rounds

Interview Questions

  • Q1. What happens when we type amazon.com ? View Answers (1)
  • Q2. Describe transaction process in detail if we want to transfer from one account to other. Also design scheme for it View Answers (1)
  • Q3. What happens on server side on receiving HTTP requests and how operating system interacts and then discussion related with threading, thread pool ,synchronizati...read more View Answers (1)
  • Q4. Describe ACID properties in detail View Answers (1)
  • Q5. How to find kth- smallest element in BST? -----/ View Answers (1)

Interview Preparation Tips

Round: Test
Experience: Online Round: (Duration – 90 minutes)

20 MCQs and 2 coding questions. MCQs were on Algorithms, Time Complexity, Quantitative Aptitude, Probability, Operating Systems, Graphs, Data Structures, Recursion outputs etc.

Coding Questions:

1. In one of Amazon fulfillment centers, there are a no. of empty boxes kept in increasing order in a row. Kiva robots are designed to put a product in a box. The product size is given. Design a program to find the best fit box for given product size. First line contains no. of empty boxes and next line contains size of boxes with space. The next line contains size of given product. The output shows the best fit box size and -1 otherwise.For example, Input: 6

2 7 9 11 13 16

12

Output: 13 2. You have to find a string in two-dimensional array. The input contains 2-D array of characters and given string. You can move in one of eight directions . The output contains location of first letter of string if string found completely, otherwise return -1. Any one out of multiple answers is accepted, if possible.

For example, Input:

b t g

p a d

r k jString: rat

Output: (2,0)

Round: TECHNICAL INTERVIEW
Experience: Brief introduction about myself and my project.

1. Given an array of positive and negative integers, rearrange positive and negative numbers in 0(n) time .

First, I solved it using 2 arrays,each for positive and negative integers and place elements of array in these 2 arrays and them combine them back by taking one element from each array. Then he told me to do without extra space. I then segregated positive and negative elements using quicksort .Below is the link:

-----. Program to check whether strings are rotation of each other or not. I approached as below:

-----/

He then told to solve without using strstr. I used naive searching method.

Round: HR INTERVIEW
Experience: Brief introduction and some behavioral questions.

Given a BST and a key sum, design an algorithm to find all pairs of integers whose sum equal to key.

I first approached using an array and placing elements into it in inorder fashion and then find pairs. He told to do in-place and I solved with 2 traversals (inorder and reverse- inorder

Round: Technical Interview
Experience: Based on CS Fundamentals and also had 15 minutes discussion on my internship project.
Q.Given a Binary tree, full_path_sum is sum of all nodes from root to leaf in a path. Given a min_sum value, delete nodes if path has full_path_sum less than min_sum . Delete all such nodes . For example,Given min_sum =8 1
2 3
4 5 6 7

College Name: NA

Skills evaluated in this interview

SDE Interview Questions

user image Anonymous

posted on 22 May 2015

6 Interview Rounds

Interview Questions

  • Q1. What is the definition of tree ? View Answers (1)
  • Q2. What are the differences between graph and tree? View Answers (1)
  • Q3. When can you say a graph to be a tree? View Answers (1)
  • Q4. Write a program to show whether a graph is a tree or not using adjacency matrix View Answers (1)
  • Q5. Did u ask your current company to provide that type of work as u r looking in Amazon? Add Answer
  • Q6. Why Amazon ? Add Answer
  • Q7. Lots of questions on my current work and tools which I was using Add Answer
  • Q8. Why do I want to leave my current company on such a short interval of 5 months View Answers (1)
  • Q9. A stream of data is coming. Maintain records in a page and mechanism to see previous and next page. (Concept of Doubly Linked List) (It is always advisable to a...read more View Answers (1)
  • Q10. What is the meaning of memory leakage? View Answers (1)
  • Q11. Design a system for finding the costliest element always whenever we pick up an element from a box.(concept of Max Heap) View Answers (1)
  • Q12. What inspires you to join Amazon? Why dream company ? Add Answer
  • Q13. Connect Sibling pointers. I gave a Level Order Traversal solution. He asked to do it in O(1) space complexity. I explained the approach but messed up In writing...read more Add Answer
  • Q14. Explain the approach of LRU cache and implement using object oriented language View Answers (1)
  • Q15. OS questions Add Answer

Interview Preparation Tips

Round: Test
Experience: 1. Convert Binary tree to linked list.

2. Rotate a matrix by 90 degree.

There were 2 more questions. But I forgot what were they?

Round: TECHNICAL INTERVIEW
Experience: Overview of current job responsibilities and internship project.

1. Convert a tree to a sum tree.Example :

1 27

/ /

2 3 -------> 9 13

/ / / /

4 5 6 7 0 0 0 0 Always take care of all the corner cases

2. Print a pascal tree .

3. Given a 2D matrix sorted row wise and column wise . Print the matrix in sorted way. (Can be done using Min Heap).

For all the questions, complexity of the program was asked and was being asked to improve both time and space complexity.

Round: TECHNICAL INTERVIEW
Experience: Many questions regarding my current project, tools and technology I am working on.

1. Convert a binary tree to a sum tree . Here he had a new meaning of sum tree.

Example :Example :

1 1

/ /

2 3 -------> 2 5

/ / / /

4 5 6 7 4 9 15 22 (I did it with Level Order Traversal) (Complete working code was required)

2. Given an array of integers. Find the largest 3 element. (Can be done using Max Heap in less time complexity)

College Name: NA

Skills evaluated in this interview

SDE Interview Questions

user image Anonymous

posted on 21 May 2015

5 Interview Rounds

Interview 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 ...read more View Answers (2)
  • Q2. Several Questions were asked from my project Add Answer
  • 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 a...read more Add Answer
  • 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 Add Answer
  • 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 you...read more Add Answer
  • 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 th...read more View Answers (1)
  • 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 fi...read more View Answers (1)
  • 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 Add Answer
  • 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 req...read more Add Answer
  • Q10. He showed me the Amazon page they were working at that time and I asked me to suggest 5 changes in 5 minutes Add Answer
  • Q11. Behavioral questions like dealing with manager in case of conflicts, Add Answer
  • Q12. Why would you choose Amazon and not Flipkart if you have offers from both Add Answer
  • Q13. About my projects and contribution to present company Add Answer
  • Q14. Reasons for leaving present company, , Add Answer

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&#44; 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

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 Algorithms, C++, Java, C# and Data Structures.
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. A stream of data is coming. Maintain records in a page and mechanism to see pre...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.

Interview Process at Amazon SDE

based on 23 interviews in last 1 year

3 Interview rounds

  • Coding Test Round 1
  • Technical Round
  • Coding Test Round 2
View more

People are getting interviews through

based on 19 Amazon interviews
Company Website
Job Portal
Campus Placement
Referral
42%
32%
16%
11%
High Confidence
?
High Confidence means the data is based on a large number of responses received from the candidates.

SDE Interview Questions from Similar Companies

Flipkart SDE Interview Questions
4.0
 • 5 Interviews
Myntra SDE Interview Questions
4.0
 • 3 Interviews
Paytm SDE Interview Questions
3.3
 • 2 Interviews
Snapdeal SDE Interview Questions
3.9
 • 1 Interview
Blinkit SDE Interview Questions
3.8
 • 1 Interview
Uber SDE Interview Questions
4.2
 • 1 Interview
LinkedIn SDE Interview Questions
4.3
 • 1 Interview
Facebook SDE Interview Questions
4.4
 • 1 Interview
View all
Amazon SDE Salary
based on 341 salaries
₹13.3 L/yr - ₹50 L/yr
41% more than the average SDE Salary in India
View more details

Amazon SDE Reviews and Ratings

based on 27 reviews

3.5/5

Rating in categories

3.5

Skill development

3.0

Work-Life balance

4.0

Salary & Benefits

2.4

Job Security

3.3

Company culture

3.1

Promotions/Appraisal

3.4

Work Satisfaction

Explore 27 Reviews and Ratings
Customer Service Associate
4.2k salaries
unlock blur

₹1 L/yr - ₹4.9 L/yr

Transaction Risk Investigator
3.2k salaries
unlock blur

₹2.3 L/yr - ₹6.5 L/yr

Software Engineer
2.8k salaries
unlock blur

₹11.8 L/yr - ₹45 L/yr

Senior Associate
2.7k salaries
unlock blur

₹2 L/yr - ₹10 L/yr

Associate
2.7k salaries
unlock blur

₹1 L/yr - ₹6.5 L/yr

Explore more salaries
Compare Amazon with

Flipkart

4.0
Compare

TCS

3.7
Compare

Google

4.4
Compare

Netflix

4.5
Compare

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Did you find this page helpful?
Yes No
write
Share an Interview