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 Developer Interview Questions and Answers

Updated 3 Jun 2025

361 Interview questions

A Software Developer was asked
Q. Given an integer n, generate all possible and valid combinations of parentheses.
Ans. 

Generate all possible parentheses for a given integer n.

  • Use recursion to generate all possible combinations of parentheses.

  • Start with an empty string and keep adding opening and closing parentheses.

  • Keep track of the number of opening and closing parentheses used.

  • Stop recursion when the number of opening and closing parentheses reaches n.

  • Add the generated combination to the result array.

A Software Developer was asked
Q. Given a linked list, determine if it contains a loop. Also, provide a proof of the algorithm used.
Ans. 

To find a loop in a linked list, we can use the Floyd's cycle-finding algorithm.

  • Initialize two pointers, slow and fast, both pointing to the head of the linked list.

  • Move slow pointer by one step and fast pointer by two steps at each iteration.

  • If there is a loop, the slow and fast pointers will eventually meet.

  • To prove the algorithm, we can use mathematical induction and the concept of tortoise and hare.

Software Developer Interview Questions Asked at Other Companies

asked in Amazon
Q1. Maximum Subarray Sum Problem Statement Given an array of integers ... read more
asked in Rakuten
Q2. Merge Two Sorted Arrays Problem Statement Given two sorted intege ... read more
asked in Amazon
Q3. Minimum Number of Platforms Needed Problem Statement You are give ... read more
asked in Cognizant
Q4. Nth Fibonacci Number Problem Statement Calculate the Nth term in ... read more
asked in PhonePe
Q5. Form a Triangle Problem Statement You are given an array of integ ... read more
A Software Developer was asked
Q. Given a binary tree, return the spiral order traversal of its nodes' values. (Start from the root and alternate the direction of traversal for each level).
Ans. 

Spiral order traversal of a binary tree

  • Use a stack and a queue to traverse the binary tree in a spiral order

  • Start with the root node and add it to the stack

  • While the stack is not empty, pop a node from the stack and add its children to the queue

  • If the stack is empty, swap the stack and queue

  • Repeat until both stack and queue are empty

A Software Developer was asked
Q. Given a binary tree and a 2D matrix M, where M[i, j] = 1 if i is an ancestor of j, and initially all elements of M are set to zero, how would you populate this matrix?
Ans. 

The question asks how to feed a 2D matrix with values based on the given binary tree.

  • Traverse the binary tree and for each node, update the corresponding row in the matrix

  • Use a recursive function to update the matrix values

  • Start with the root node and recursively update its descendants

  • Set M[i, j] to 1 if node i is an ancestor of node j

  • Repeat the process for all nodes in the binary tree

What people are saying about Amazon

View All
an influencer marketing manager
2w
Should she delete her LinkedIn post or not?
Asking for a friend, Since last 3 months, she has been facing multiple issues including mental harassment by her manager at her workplace. She tried all official channels including reporting to the HR and even to the CEO eventually, but surprisingly, nothing happened. Infact, as a retaliation, she was put on PIP last month by here manager. So finally as a response to this continuous harassment, she went to LinkedIn and called out her manager, the company and even the CEO. And this is what she has received in response! The company is threatening her of legal actions and now we are confused, whether to delete the posts or to maintain our stand. Any help would be highly recommended at this point!
FeedCard Image
Got a question about Amazon?
Ask anonymously on communities.
A Software Developer was asked
Q. Given a sorted array (that can contain duplicates), find the first occurrence of a given key element in the array.
Ans. 

Find the first occurrence of a given key element in a sorted array with duplicates.

  • Use binary search to find the key element.

  • If the key element is found, check if it is the first occurrence by checking the previous element.

  • If the key element is not found, return -1.

A Software Developer was asked
Q. Given a road network of a city where each road represents an edge, devise an algorithm to deploy the minimum number of guards such that each road has at least one guard at either end.
Ans. 

Deploy minimum guards on a city's road network ensuring each road has at least one guard at its ends.

  • Model the city as a graph where intersections are nodes and roads are edges.

  • Use a greedy algorithm to select nodes (intersections) to place guards.

  • A possible approach is to use a vertex cover algorithm, which finds the smallest set of vertices covering all edges.

  • For example, in a triangle graph with edges (1,2), (2...

A Software Developer was asked
Q. Given a linked list having next and random pointers (where the random pointer can point anywhere in the singly linked list), generate a copy of this linked list.
Ans. 

Create a deep copy of a linked list with next and random pointers.

  • Traverse the original list and create a copy of each node.

  • Insert the copied nodes right next to the original nodes.

  • Set the random pointers of the copied nodes using the original nodes' random pointers.

  • Separate the copied list from the original list.

Are these interview questions helpful?
A Software Developer was asked
Q. The array is rotated. Solve the same problem.
Ans. 

Rotated arrays can be solved using binary search or linear search to find the minimum element or search for a target.

  • Identify the pivot point where the array is rotated. Example: [4, 5, 6, 7, 0, 1, 2] is rotated at index 3.

  • Use binary search to find the target efficiently. If the middle element is greater than the first element, search the left half.

  • If the middle element is less than the first element, search the r...

A Software Developer was asked
Q. How can you ensure a file is mutually exclusive on a shared file system?
Ans. 

Use file locking mechanisms like flock or lockfile to make a file mutually exclusive on a shared file system.

  • Use flock or lockfile to acquire a lock on the file before accessing it.

  • Release the lock once the operation is complete.

  • Ensure all processes accessing the file use the same locking mechanism.

  • Example: flock /path/to/file -c 'command to execute'

  • Example: lockfile /path/to/file && command to execute && rm -f /p...

A Software Developer was asked
Q. Given an array of stock prices, how would you determine the optimal buying and selling dates to maximize profit?
Ans. 

Algorithm to find the best buying and selling dates for maximum profit from given stock prices array.

  • Iterate through the array and keep track of minimum price and maximum profit.

  • If current price is less than minimum price, update minimum price.

  • If current price minus minimum price is greater than maximum profit, update maximum profit and buying and selling dates.

  • Return buying and selling dates.

  • Example: [10, 7, 5, 8...

Amazon Software Developer Interview Experiences

197 interviews found

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

I appeared for an interview in Feb 2025.

Round 1 - One-on-one 

(2 Questions)

  • Q1. Self introduction
  • Q2. Hi , good morning this is kamakshi from someswaram Dr br Ambedkar konaseema district Andhra
Round 2 - Assignment 

Coding questions about our technical skills

Round 3 - Technical 

(1 Question)

  • Q1. About our skills
Round 4 - HR 

(1 Question)

  • Q1. According to the skills to move hr
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

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

Round 1 - HR 

(5 Questions)

  • Q1. Why Amazon Software Developer?
  • Ans. 

    Amazon offers challenging projects, innovative technologies, and a collaborative work environment.

    • Opportunity to work on cutting-edge projects like Amazon Web Services (AWS) or Alexa

    • Access to vast resources and tools for development

    • Collaborative work culture that encourages learning and growth

    • Opportunity to impact millions of customers worldwide

    • Competitive compensation and benefits package

  • Answered by AI
  • Q2. Why do you want to work at amazon ?
  • Ans. 

    I want to work at Amazon because of their innovative culture, vast resources, and opportunities for growth.

    • Amazon is known for its innovative culture and cutting-edge technology.

    • They have vast resources and a global reach, providing opportunities to work on impactful projects.

    • Amazon offers great career growth and development opportunities for software developers.

    • I admire Amazon's customer-centric approach and focus on ...

  • Answered by AI
  • Q3. What are your strengths and weakness?
  • Ans. 

    My strengths include problem-solving skills and attention to detail. My weakness is sometimes being too critical of my own work.

    • Strengths: problem-solving skills

    • Strengths: attention to detail

    • Weakness: being too critical of my own work

  • Answered by AI
  • Q4. How would you solve?
  • Ans. 

    I would solve the problem by breaking it down into smaller tasks, analyzing requirements, designing a solution, coding, testing, and debugging.

    • Analyze requirements thoroughly before starting the development process

    • Break down the problem into smaller tasks to make it more manageable

    • Design a solution architecture that meets the requirements and is scalable

    • Code the solution using best practices and coding standards

    • Test th...

  • Answered by AI
  • Q5. What are the short term and long-term for teame or organisation?
  • Ans. 

    Short term goals focus on immediate tasks and objectives, while long-term goals involve strategic planning and growth.

    • Short term goals may include completing a specific project, improving team communication, or implementing a new software feature.

    • Long-term goals could involve expanding the team, increasing market share, or developing new products or services.

    • Short term goals help keep the team focused and motivated, wh...

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Amazon Software Developer interview:
  • Excel
  • Data Entry
  • Project Management
  • Ms World
  • Programming
  • Google software developer
  • Microsoft software developer
Interview preparation tips for other job seekers - Here are some tips and advice for seekers looking to land a role at amazon software developer....
1. Understand Amazon's culture:?
2. Review job description ?
3.update your resume.? B
INTERVIEW PREPARATION
1.Research the team and role ?
2. Prepare to talk about your experience?
3.How would you solve?
4.What are your strengths and weakness?
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
No response

I applied via Company Website and was interviewed in Jun 2024. There were 6 interview rounds.

Round 1 - Coding Test 

It was a coding test on Hackerrank with 3 Leetcode easy to medium-level questions.

Round 2 - Technical 

(1 Question)

  • Q1. Phone Interview Round - LP-based discussion followed by an easy DSA question.
Round 3 - Technical 

(1 Question)

  • Q1. Loop Round 1 (Hiring Manager Round) - LP-based discussion followed by a system design question (HLD) which was basically around what the hiring team is working on.
Round 4 - Technical 

(1 Question)

  • Q1. Loop Round 2 (Coding Round) - LP-based discussion followed by a Leetcode medium coding question.
Round 5 - Technical 

(1 Question)

  • Q1. Loop Round 3 (Coding Round) - LP-based discussion followed by an OOD question which was fairly simple but the requirements were not clarified very well even on asking multiple times. Ask and clarify to the...
Round 6 - Technical 

(1 Question)

  • Q1. Loop Round 4 (Coding Round) (Bar Raiser) - LP-based discussion followed by a Leetcode medium coding question.

Interview Preparation Tips

Topics to prepare for Amazon Software Developer interview:
  • Data Structures
  • Algorithms
  • System Design
  • Object Oriented Design
  • Amazon Leadership Principles
Interview preparation tips for other job seekers - Prepare well for DSA and System Design.

Stay confident.

For System Design and OOD, always clarify the requirements since it's very open-ended and subjective. And do keep an eye on the clock.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

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

Round 1 - Aptitude Test 

Good but tough i dint do well but still qualified

Round 2 - Coding Test 

Very tough only graphs dp and linked lists were asked

Round 3 - Technical 

(2 Questions)

  • Q1. Reverse a linked list
  • Q2. Dfs of a graph
  • Ans. 

    Depth-first search (DFS) is a graph traversal algorithm that explores as far as possible along each branch before backtracking.

    • DFS starts at a selected node and explores as far as possible along each branch before backtracking.

    • It uses a stack to keep track of nodes to visit next.

    • DFS can be implemented recursively or iteratively.

    • Example: DFS traversal of a graph starting from node A: A -> B -> D -> E -> C -&...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - go all in on your technical skills

Skills evaluated in this interview

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

(2 Questions)

  • Q1. Least Common Ancestor of binary tree
  • Q2. Smallest path to reach from a to b point in matrix
  • Ans. 

    Use Dijkstra's algorithm to find the smallest path from point a to point b in a matrix.

    • Implement Dijkstra's algorithm to find the shortest path in a matrix

    • Create a matrix representation of the graph with weights on edges

    • Start from point a and explore all possible paths to reach point b

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

Hacker rank test include 2 code and mcg questions

Round 2 - One-on-one 

(2 Questions)

  • Q1. Coding based on linked list
  • Ans. 

    Linked lists are dynamic data structures that consist of nodes, each containing data and a reference to the next node.

    • A linked list consists of nodes, where each node has data and a pointer to the next node.

    • Types of linked lists include singly linked lists, doubly linked lists, and circular linked lists.

    • Example of a singly linked list: Node1 -> Node2 -> Node3 -> NULL.

    • Doubly linked list allows traversal in both...

  • Answered by AI
  • Q2. String related coding questions
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Two coding questions, both passed 100%

Round 2 - Technical 

(1 Question)

  • Q1. What is the problem of identifying duplicates in an array?
  • Ans. 

    Identifying duplicates in an array involves finding and removing elements that appear more than once.

    • Iterate through the array and use a hash set to keep track of elements seen so far.

    • If an element is already in the hash set, it is a duplicate and can be removed.

    • Example: ['apple', 'banana', 'apple', 'orange'] - 'apple' is a duplicate.

    • Example: ['cat', 'dog', 'bird', 'cat'] - 'cat' is a duplicate.

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

2-3 coding questions with some mcq

Round 2 - One-on-one 

(2 Questions)

  • Q1. Live coding with the hr
  • Q2. Binary Trees based traversal
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Apr 2025, where I was asked the following questions.

  • Q1. It was a DFS based graph question [Leetcode easy]
  • Q2. Could you describe the process for designing a data structure that allows for all create and delete operations in O(1) time while also implementing a function that generates a random number?
  • Ans. 

    Design a data structure for O(1) create/delete and random number generation using a hash map and an array.

    • Use a hash map to store elements with their indices for O(1) access.

    • Maintain an array to store the actual elements for O(1) random access.

    • On insertion, add the element to the array and update the hash map.

    • On deletion, swap the element with the last element in the array, remove it, and update the hash map.

    • To get a r...

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

I appeared for an interview in May 2025, where I was asked the following questions.

  • Q1. Java Sql Inheritance
  • Q2. Java Polymorphism

Amazon Interview FAQs

How many rounds are there in Amazon Software Developer 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 Developer 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 Computer Science, Medical Coding, Architectural Design, CCTV Monitoring and Team Management.
What are the top questions asked in Amazon Software Developer interview?

Some of the top questions asked at the Amazon Software Developer interview -

  1. There is a 12 km road and a contractor who is in-charge of repairing it. Contra...read more
  2. 14. you have given a string of multiline. you have to print the maximum occupa...read more
  3. What are the different types of hashing? Suggest an alternative and a better wa...read more
How long is the Amazon Software Developer interview process?

The duration of Amazon Software Developer 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.3/5

based on 131 interview experiences

Difficulty level

Easy 14%
Moderate 66%
Hard 20%

Duration

Less than 2 weeks 63%
2-4 weeks 21%
4-6 weeks 10%
6-8 weeks 3%
More than 8 weeks 3%
View more
Amazon Software Developer Salary
based on 2.3k salaries
₹24.6 L/yr - ₹49.2 L/yr
210% more than the average Software Developer Salary in India
View more details

Amazon Software Developer Reviews and Ratings

based on 272 reviews

4.0/5

Rating in categories

3.9

Skill development

3.6

Work-life balance

4.2

Salary

3.5

Job security

3.7

Company culture

3.7

Promotions

3.6

Work satisfaction

Explore 272 Reviews and Ratings
Software Dev Manager, Design Technologies

Bangalore / Bengaluru

5-10 Yrs

Not Disclosed

Software Dev Manager, HST Health Foundation

Bangalore / Bengaluru

3-8 Yrs

Not Disclosed

Explore more jobs
Customer Service Associate
4.1k salaries
unlock blur

₹0.6 L/yr - ₹7.8 L/yr

Transaction Risk Investigator
3.1k salaries
unlock blur

₹2 L/yr - ₹6.3 L/yr

Associate
3k salaries
unlock blur

₹0.8 L/yr - ₹7 L/yr

Senior Associate
2.6k salaries
unlock blur

₹1.8 L/yr - ₹9 L/yr

Software Developer
2.3k salaries
unlock blur

₹24.8 L/yr - ₹44 L/yr

Explore more salaries
Compare Amazon with

Flipkart

3.9
Compare

TCS

3.6
Compare

Google

4.4
Compare

Netflix

4.3
Compare
write
Share an Interview