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 Software Development Engineer Interview Questions, Process, and Tips

Updated 9 Jan 2025

Top Amazon Software Development Engineer Interview Questions and Answers

  • Q1. Given an acyclic graph of a city where each edge represents a road in the city and each vertex represents an crossing. Write an algo to find out the minimum number of ver ...read more
  • Q2. Given a m * n matrix filled with '0's and 'x's at random position with two positions marked as start 'S' and end 'E'. From each cell you can only move to those adjacent c ...read more
  • Q3. Given a String, find out all the permutation of the strings? Time complexity? Handle duplicate characters. AAA should only give AAA. Write Code
View all 45 questions

Amazon Software Development Engineer Interview Experiences

34 interviews found

Interview Questionnaire 

14 Questions

  • Q1. Given a String, find out all the permutation of the strings? Time complexity? Handle duplicate characters. AAA should only give AAA. Write Code
  • Ans. 

    Find all permutations of a given string, handling duplicates.

    • Use recursion to generate all possible permutations

    • Use a hash set to keep track of already generated permutations

    • Handle duplicates by skipping already generated permutations

    • Time complexity is O(n!)

    • Return an array of strings containing all permutations

  • Answered by AI
  • Q2. Given a BST, prove that its in-order traversal is always sorted and Given a binary tree, if its in-order traversal is sorted proof that it is a BST
  • Ans. 

    Prove that in-order traversal of a BST is always sorted and vice versa

    • In-order traversal of a BST visits nodes in ascending order

    • If a binary tree's in-order traversal is sorted, it is a BST

    • A BST's left subtree contains only nodes with values less than its root

    • A BST's right subtree contains only nodes with values greater than its root

  • Answered by AI
  • Q3. Given an array containing 0s,1s,2s. Sort the array without using counting sort. Write Code
  • Ans. 

    Sort an array of 0s, 1s, and 2s without using counting sort.

    • Use three pointers to keep track of the positions of 0s, 1s, and 2s.

    • Traverse the array and swap elements to their respective positions.

    • Time complexity: O(n), Space complexity: O(1).

  • Answered by AI
  • Q4. Given an sorted array and an number n. Find out an element k in the array such that Max(k) < n. Write Code
  • Ans. 

    Find an element k in a sorted array such that Max(k) < n.

    • Use binary search to find the largest element smaller than n

    • Start with mid element and adjust search range based on comparison with n

    • Return -1 if no such element exists

  • Answered by AI
  • Q5. Given a sorted array that contains 0s and 1s. find out the first occurrence of 1. Write Code
  • Ans. 

    Find the first occurrence of 1 in a sorted array of 0s and 1s.

    • Use binary search to find the first occurrence of 1.

    • If mid element is 1, check left subarray for first occurrence.

    • If mid element is 0, check right subarray for first occurrence.

  • Answered by AI
  • Q6. Given an acyclic graph of a city where each edge represents a road in the city and each vertex represents an crossing. Write an algo to find out the minimum number of vertices at which a policemen will be ...
  • Ans. 

    Find minimum vertices to place policemen in an acyclic graph of a city to cover all roads.

    • Use Depth First Search (DFS) to traverse the graph

    • Maintain a set of visited vertices to avoid revisiting

    • For each unvisited vertex, place a policeman and mark all connected edges as covered

    • Repeat until all edges are covered

    • Return the minimum number of policemen placed

  • Answered by AI
  • Q7. Given a singly linked list find out if there is a loop exists. If yes, what is the starting point. Proof it mathematically
  • Q8. Pre-process a dictionary in a way that later on given a string in the dictionary, output all the strings in the dictionary that are anagrams to the given string.Data structure used. Time and space complexi...
  • Ans. 

    Pre-process a dictionary to output anagrams of a given string. Data structure, time and space complexity?

    • Create a hash table with sorted string as key and list of anagrams as value

    • Iterate through dictionary and sort each string, add to hash table

    • To find anagrams of given string, sort it and look up in hash table

    • Time complexity: O(n * klogk), space complexity: O(n)

    • n = number of strings in dictionary, k = length of longe

  • Answered by AI
  • Q9. Given a binary tree, check whether it is a BST or not.Write the algo. Time and space complexity
  • Ans. 

    Check if a binary tree is a BST or not and give time and space complexity.

    • Traverse the tree in-order and check if the elements are in ascending order

    • Keep track of the maximum value seen so far while traversing

    • If any element violates the ascending order, return false

    • Time complexity: O(n), Space complexity: O(h) where h is the height of the tree

  • Answered by AI
  • Q10. Design a lift system. OOPs concept
  • Ans. 

    Design a lift system using OOPs concepts.

    • Create a Lift class with methods like moveUp(), moveDown(), openDoor(), closeDoor()

    • Create a Floor class with methods like requestLift()

    • Use inheritance to create different types of lifts like passenger lift, cargo lift, etc.

    • Use encapsulation to hide the internal workings of the lift system from the outside world.

    • Use polymorphism to allow different types of lifts to respond differ

  • Answered by AI
  • Q11. Given two string a and b. FInd out the minimum length substring k of a such that k contains all the characters of b. Minimum window problem
  • Ans. 

    Find minimum length substring of string a containing all characters of string b.

    • Use sliding window approach

    • Maintain a frequency map of characters in b

    • Move the window until all characters of b are present

    • Update the minimum length substring as you move the window

  • Answered by AI
  • Q12. Question on designing a schema and then a SQL query
  • Q13. Question on amazon website. What you like and dislike
  • Q14. Testing questions. Testing a new look for the site. how should that be done. HOw to find out if the customer really likes the new look or not

Interview Preparation Tips

Round: Test
Experience: QGiven a dictionary, Write algorithms for the following. # Find if a word exists in the dictionary or no. # Given a word, print all the words in the dictionary that starts with that word. Expain the datastucture and the algo with the space and time complexity? Q - Given n cities and k houses in each city. A postman has to deliver letters to at least m houses in each city. Given the distance between the cities and the houses, write an algo for the postman to deliver the letters with minimum distance. (Travelling salesman problem) Q - A log processing question. Given some huge log files. Find out the number of time a particular user has logged in.

College Name: Na

Skills evaluated in this interview

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

(2 Questions)

  • Q1. Leetcode medium
  • Q2. LLD round not very difficult

Software Development Engineer Interview Questions Asked at Other Companies

asked in Amazon
Q1. Given an acyclic graph of a city where each edge represents a roa ... read more
asked in Hike
Q2. You have application which shows list of all contacts, the Name c ... read more
asked in Amazon
Q3. Given a m * n matrix filled with '0's and 'x's at random position ... read more
asked in Samsung
Q4. puzzle-There are 1000 wine bottles. One of the bottles contains p ... read more
asked in Accenture
Q5. Have you worked on cloud technology? Architecture of cloud
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Ds and Algo, tree, array String

Round 2 - Coding Test 

DS Algo, Tree Array grapH String

Round 3 - Behavioral 

(1 Question)

  • Q1. Behavioural questions
Round 4 - Bar raiser 

(2 Questions)

  • Q1. 1 on DS Algo LC medium
  • Q2. Behavioural questions
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected
Round 1 - Coding Test 

1hr with two DSA questions, one is printing nth row of pascal triangle,
other I donot remember

Round 2 - Technical 

(2 Questions)

  • Q1. Diagonal traversal of a binary tree
  • Ans. 

    Diagonal traversal of a binary tree involves printing the nodes of the tree in a diagonal pattern.

    • Start with the root node and move to its right child, then move down to its left child.

    • Repeat this process for each diagonal of the tree, printing the nodes as you traverse.

    • Use a queue to keep track of the nodes at each level of the tree.

  • Answered by AI
  • Q2. I donot remember
Round 3 - Technical 

(2 Questions)

  • Q1. Merge point of two inked lists which will be same from a node. (Linked List)
  • Ans. 

    Find the merge point of two linked lists.

    • Traverse both linked lists to find their lengths.

    • Calculate the difference in lengths and move the pointer of the longer list by the difference.

    • Traverse both lists in parallel until the merge point is found.

  • Answered by AI
  • Q2. Next greater element (Stack)
  • Ans. 

    The Next Greater Element problem involves finding the next greater element for each element in an array.

    • Use a stack to keep track of elements for which the next greater element is yet to be found.

    • Iterate through the array and for each element, pop elements from the stack until a greater element is found.

    • Store the next greater element for each element in a result array.

  • Answered by AI
Round 4 - HR 

(1 Question)

  • Q1. Solve soduko puzzle(I have used backtracking)

Skills evaluated in this interview

Amazon interview questions for designations

 Software Development Engineer II

 (29)

 Software Development Engineer 1

 (8)

 Software Development Engineer Test

 (1)

 Senior Software Development Engineer

 (1)

 Software Development Manager

 (4)

 Senior Software Development Manager

 (1)

 Software Development Engineer Intern

 (25)

 SDE (Software Development Engineer)

 (22)

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

DSA and SQL leetcode questions

Round 2 - One-on-one 

(1 Question)

  • Q1. Explain the coding questions that you have solved

Get interview-ready with Top Amazon Interview Questions

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

Standard DS/Algo involving mostly trees and leadership principles

Round 2 - Technical 

(2 Questions)

  • Q1. System Design Hotel
  • Q2. Behavrioal questions

Software Development Engineer Jobs at Amazon

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

I applied via Approached by Company and was interviewed in May 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Hackerrank 2 questions followed by leadership principle questions

Round 2 - One-on-one 

(2 Questions)

  • Q1. Leadership principle questions with account managers
  • Q2. Leetcode questions with SDE
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(1 Question)

  • Q1. Tell me about a time when you had conflict with your seniors at work and how you handled it
  • Ans. 

    Handled conflict with seniors by discussing concerns openly and finding common ground

    • Approached senior calmly and respectfully to discuss concerns

    • Listened to their perspective and tried to understand their point of view

    • Suggested potential solutions or compromises to resolve the conflict

    • Worked together to find common ground and move forward professionally

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

3 simple questions on arrays and strings

Round 2 - Technical 

(2 Questions)

  • Q1. 1 question on flattening binary tree to array
  • Q2. Simple graph BFS-No of times it takes oranges to decay in a grid
  • Ans. 

    Using BFS to find the minimum number of steps for oranges to decay in a grid

    • Implement BFS algorithm to traverse the grid and decay the oranges

    • Keep track of the number of steps taken to decay all oranges

    • Return the minimum number of steps required to decay all oranges

  • Answered by AI
Round 3 - One-on-one 

(1 Question)

  • Q1. Brain teasers,like if you have jars of 10L and 45L, how can you get 60L, something like that

Skills evaluated in this interview

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

Basic trie question for word suggestions

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

General DSA questions

Amazon Interview FAQs

How many rounds are there in Amazon Software Development Engineer interview?
Amazon interview process usually has 2-3 rounds. The most common rounds in the Amazon interview process are Coding Test, Technical and One-on-one Round.
How to prepare for Amazon Software Development Engineer 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 Architectural Design, Clinical SAS Programming, Customer Experience Management, C++ and Operational Excellence.
What are the top questions asked in Amazon Software Development Engineer interview?

Some of the top questions asked at the Amazon Software Development Engineer interview -

  1. Given an acyclic graph of a city where each edge represents a road in the city ...read more
  2. Given a m * n matrix filled with '0's and 'x's at random position with two posi...read more
  3. Given a String, find out all the permutation of the strings? Time complexity? H...read more
How long is the Amazon Software Development Engineer interview process?

The duration of Amazon Software Development Engineer interview process can vary, but typically it takes about 2-4 weeks to complete.

Tell us how to improve this page.

Amazon Software Development Engineer Interview Process

based on 31 interviews

4 Interview rounds

  • Coding Test Round - 1
  • Coding Test Round - 2
  • Technical Round - 1
  • Technical Round - 2
View more
Amazon Software Development Engineer Salary
based on 2k salaries
₹18.9 L/yr - ₹34.1 L/yr
54% more than the average Software Development Engineer Salary in India
View more details

Amazon Software Development Engineer Reviews and Ratings

based on 132 reviews

3.2/5

Rating in categories

3.6

Skill development

2.4

Work-life balance

4.2

Salary

2.4

Job security

2.7

Company culture

2.8

Promotions

2.9

Work satisfaction

Explore 132 Reviews and Ratings
Software Development Engineer, UTR, Last Mile

Gurgaon / Gurugram

0-7 Yrs

Not Disclosed

Software Development Engineer, UTR, Last Mile

Gurgaon / Gurugram

0-7 Yrs

Not Disclosed

Software Dev Engineer, Amazon Flex

Bangalore / Bengaluru

0-7 Yrs

Not Disclosed

Explore more jobs
Customer Service Associate
4.2k salaries
unlock blur

₹0.6 L/yr - ₹6.8 L/yr

Transaction Risk Investigator
3.1k salaries
unlock blur

₹2.3 L/yr - ₹6.5 L/yr

Associate
2.8k salaries
unlock blur

₹0.8 L/yr - ₹6.9 L/yr

Senior Associate
2.5k salaries
unlock blur

₹2 L/yr - ₹10.1 L/yr

Program Manager
2.3k salaries
unlock blur

₹9 L/yr - ₹36 L/yr

Explore more salaries
Compare Amazon with

Flipkart

4.0
Compare

TCS

3.7
Compare

Google

4.4
Compare

Netflix

4.5
Compare
Did you find this page helpful?
Yes No
write
Share an Interview