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 6 Apr 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

37 interviews found

I applied via Naukri.com and was interviewed in Mar 2019. There were 5 interview rounds.

Interview Questionnaire 

9 Questions

  • Q1. Find shortest path to reach from one point to another in a 2d matrix. Link - -----/
  • Ans. 

    Shortest path in 2D matrix

    • Use BFS or Dijkstra's algorithm

    • Create a visited matrix to avoid revisiting cells

    • Keep track of distance and path

    • Consider obstacles or blocked cells

  • Answered by AI
  • Q2. Vertical order traversal of tree. Link - -----/
  • Ans. 

    Vertical order traversal of tree

    • Vertical order traversal means printing nodes of a binary tree in vertical order

    • We can use a map to store nodes at each horizontal distance from the root

    • Then we can traverse the map and print nodes in each horizontal distance

  • Answered by AI
  • Q3. Sliding window maximum. Link- -----/
  • Q4. Number of binary strings of length N, not containing consecutive 1s. Link: - -----/
  • Ans. 

    The number of binary strings of length N without consecutive 1s.

    • Use dynamic programming to solve the problem.

    • Create an array to store the number of valid strings for each length.

    • Initialize the array with base cases.

    • Iterate through the array and calculate the number of valid strings for each length.

    • Return the value at the Nth index of the array.

  • Answered by AI
  • Q5. Next greater permutation. Link:- -----/
  • Q6. LRU cache. Link:- -----/
  • Q7. Minimum time required to rot all oranges. Link:- -----/
  • Q8. A complete binary is defected because it has a level at which difference between heights of left and right subtree is more than 1. Find the first such level from top.
  • Ans. 

    Find the first level in a complete binary tree where the height difference between left and right subtrees is more than 1.

    • Traverse the binary tree level by level using breadth-first search

    • For each level, calculate the height difference between the left and right subtrees

    • Return the level number when the height difference is more than 1

  • Answered by AI
  • Q9. In last round only project related discussion.

Interview Preparation Tips

Interview preparation tips for other job seekers - I highly recommend practicing on InterviewBit, other sites are also good but I found this platform as most helpful.

Skills evaluated in this interview

I appeared for an interview before Jan 2016.

Interview Questionnaire 

5 Questions

  • Q1. -----/. They may ask for code.
  • Q2. Given an infinite stream of string URLs, suggest a data structure to answer the following question in least possible time. Question: Which is the oldest unique (not reapeated) URL till now?
  • Q3. Discussion about projects.
  • Q4. Open and closed chain hashing in database. Probing (Linear, quadratic )
  • Q5. Implement the "People you may know" feature of facebook with code. Use BFS and counter (for mutual friends).
  • Ans. 

    Implement Facebook's 'People you may know' feature using BFS and mutual friend counter.

    • Create a graph of users and their friends

    • Perform BFS on the graph starting from the user in question

    • For each friend of the user, increment a counter for their mutual friends

    • Sort the list of potential friends by mutual friend count

    • Exclude already connected friends and suggest top potential friends

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: On campus coding round.29 shortlisted from approx 500 students.
20 MCQs and 2 coding questions.
The coding questions carried equal and high weightage as compared to the MCQs.The coding questions were
1. Check whether a linked list is a palindrome or not.
2.Print a 2D matrix in a spiral manner
Tips: Selection depends on the performance of the students.If you pass all the test cases in both the coding questions fully, then you might be shortlisted.
Duration: 1 hour 30 minutes
Total Questions: 22

Round: Technical Interview
Experience: Code required for both the questions.Be careful of the corner cases.
Tips: Be calm and composed.Sufficient time is given to think and code.

Round: Technical Interview
Experience: This interview was last interview before the conversion from intern to full timer (PPO).

Skills: Problem Solving Abilties, Coding Skills And Knowledge On Data Structures, Database, Android Development, Computer Science
College Name: NIT ALLAHABAD

Skills evaluated in this interview

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

I appeared for an interview in Feb 2017.

Interview Preparation Tips

Round: Test
Experience:
1) A, B and C jointly thought of engaging themselves in a business venture. It was agreed that A would invest Rs. 6500 for 6 months, B, Rs. 8400 for 5 months and C, Rs. 10,000 for 3 months. A wants to be the working member for which, he was to receive 5% of the profits. The profit earned was Rs. 7400. Calculate the share of B in the profit.

2) Convert

Interview Questionnaire 

2 Questions

  • Q1. Avl tree
  • Q2. Longest increasing subsequence
  • Ans. 

    Find the length of the longest increasing subsequence in an array.

    • Use dynamic programming to solve the problem.

    • The time complexity of the algorithm should be O(n^2).

    • Example: For the array [10, 22, 9, 33, 21, 50, 41, 60, 80], the longest increasing subsequence is [10, 22, 33, 50, 60, 80] with length 6.

  • Answered by AI

Interview Preparation Tips

College Name: Jadavpur University, Kolkata

Skills evaluated in this interview

Amazon interview questions for designations

 Software Development Engineer II

 (30)

 Software Development Engineer 1

 (8)

 Senior Software Development Engineer

 (1)

 Software Development Engineer Test

 (1)

 Software Development Manager

 (4)

 Senior Software Development Manager

 (1)

 Software Development Engineer Intern

 (25)

 SDE (Software Development Engineer)

 (22)

Interview Questionnaire 

2 Questions

  • Q1. It was more about array and 2-D matrix
  • Q2. In this round questions were from a bit advanced topics

Interview Preparation Tips

Round: Technical Interview
Experience: The interviewer was very friendly and helped me through the interview
Tips: Keep your calm and make yourself expressive

Round: Technical Interview
Experience: Same as the first round
Tips: This is the last round so try to be clear I'm your thoughts as the interviewer sees your thought process more than correct answers at the first go

College Name: Jadavpur University, Kolkata

Get interview-ready with Top Amazon Interview Questions

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

Software Development Engineer Jobs at Amazon

View all

Interview Questionnaire 

10 Questions

  • Q1. Design a data structure for efficient insert(),delete(),search(), return_any_value().
  • Ans. 

    Design a data structure for efficient insert(),delete(),search(), return_any_value().

    • Consider using a hash table or a balanced binary search tree

    • For return_any_value(), use a random number generator to select a value

    • Optimize for the most frequently used operations

  • Answered by AI
  • Q2. You have a sorted array in increasing order.Now shift n elements from right to first. Write a code to efficiently find n(no. of elements shifted). For example: initial array : 1,2,3,7,7,7,8 after ...
  • Ans. 

    Find the number of elements shifted in a sorted array after shifting n elements from right to first.

    • Find the index of the minimum element in the shifted array

    • The number of elements shifted is equal to the index of the minimum element

    • Use binary search to find the minimum element in O(log n) time

  • Answered by AI
  • Q3. Given an array of integers such that the adjacent elements are either 1+ or 1- from each other. Example : 1,2,3,2,3,4 Suggest an efficient way to search a given element
  • Ans. 

    Efficient way to search a given element in an array of integers with adjacent elements 1+ or 1- from each other.

    • Use binary search algorithm to search the element in O(log n) time complexity.

    • Check the middle element and compare it with the given element.

    • If the middle element is greater than the given element, search in the left half of the array.

    • If the middle element is smaller than the given element, search in the righ...

  • Answered by AI
  • Q4. Reverse singly linked list
  • Ans. 

    Reverse a singly linked list

    • Iterate through the list and change the direction of the pointers

    • Keep track of the previous, current, and next nodes

    • Set the head of the list to the last node after reversing

  • Answered by AI
  • Q5. Find the nth largest element from last in a singly linked list
  • Ans. 

    Find the nth largest element from last in a singly linked list

    • Traverse the list to find its length

    • Traverse again to the (length-n)th node

    • Return its value

  • Answered by AI
  • Q6. Given a m * n matrix and value k. Find k * k matrix within the given matrix whose sum is maximum
  • Ans. 

    Given a matrix and value k, find k*k submatrix with maximum sum.

    • Iterate over all submatrices of size k*k and calculate their sum.

    • Keep track of the maximum sum and the corresponding submatrix.

    • Use dynamic programming to optimize the solution.

    • Time complexity can be reduced to O(m*n*k^2) using prefix sum technique.

  • Answered by AI
  • Q7. 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 cells that have a '0'. Moves allowed...
  • Q8. Given a Company hierarchy and a set of employees, How will you find out the common nearest boss of these employees. (More like common ancestor problem with n-arry tree)
  • Q9. Given variable length mobile number prefixes of various mobile operators( aircel, idea, vodafone ,etc) suggest an efficient data structure and algorithm for finding out the operator if a mobile number is g...
  • Q10. Given a set of n people such that each 1 has played with every other and either lost or won. Given result of all the matches, arrange the people in a straight line such that each 1 has won from the guy st...

Interview Preparation Tips

College Name: NA

Skills evaluated in this interview

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 34 interviews

4 Interview rounds

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

Interview Questions from Similar Companies

Uber Interview Questions
4.2
 • 149 Interviews
Expedia Group Interview Questions
3.8
 • 76 Interviews
LinkedIn Interview Questions
4.3
 • 66 Interviews
OLX Interview Questions
3.8
 • 57 Interviews
Facebook Interview Questions
4.3
 • 52 Interviews
Groupon Interview Questions
3.1
 • 42 Interviews
Uplers Interview Questions
4.0
 • 41 Interviews
Fareportal Interview Questions
3.4
 • 30 Interviews
Yahoo Interview Questions
4.6
 • 29 Interviews
Airbnb Interview Questions
3.7
 • 23 Interviews
View all
Amazon Software Development Engineer Salary
based on 2.1k salaries
₹19.7 L/yr - ₹35 L/yr
56% more than the average Software Development Engineer Salary in India
View more details

Amazon Software Development Engineer Reviews and Ratings

based on 134 reviews

3.2/5

Rating in categories

3.7

Skill development

2.4

Work-life balance

4.3

Salary

2.4

Job security

2.7

Company culture

2.8

Promotions

3.0

Work satisfaction

Explore 134 Reviews and Ratings
Software Development Engineer, Smart Home

Bangalore / Bengaluru

2-5 Yrs

₹ 5.1-50 LPA

Software Development Engineer, Global Purchasing Program

Bangalore / Bengaluru

0-7 Yrs

Not Disclosed

Software Development Engineer, Amazon Traffic Engineering

Hyderabad / Secunderabad

2-7 Yrs

₹ 5-39.65 LPA

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 L/yr - ₹6.1 L/yr

Associate
2.9k salaries
unlock blur

₹0.8 L/yr - ₹7 L/yr

Senior Associate
2.5k salaries
unlock blur

₹2 L/yr - ₹10.5 L/yr

Program Manager
2.2k salaries
unlock blur

₹9 L/yr - ₹37 L/yr

Explore more salaries
Compare Amazon with

Flipkart

3.9
Compare

TCS

3.7
Compare

Google

4.4
Compare

Netflix

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