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 Intern Interview Questions and Answers for Freshers

Updated 29 Jun 2025

194 Interview questions

A Software Developer Intern was asked 3mo ago
Q. What is the code to calculate the distance between two nodes in a binary tree?
Ans. 

Calculate the distance between two nodes in a binary tree using their Lowest Common Ancestor (LCA).

  • 1. Find the LCA of the two nodes.

  • 2. Calculate the distance from the LCA to each node.

  • 3. The total distance is the sum of the two distances.

  • Example: For nodes 4 and 5, if LCA is 2, distance = distance(2, 4) + distance(2, 5).

A Software Developer Intern was asked 7mo ago
Q. Implement the sliding window algorithm.
Ans. 

The sliding window algorithm efficiently solves problems involving contiguous subarrays or substrings.

  • Used to find maximum/minimum in a subarray of fixed size. Example: max sum of any 3 consecutive elements.

  • Helps in counting distinct elements in a substring. Example: count of unique characters in 'abcabc'.

  • Can be applied to problems like longest substring without repeating characters. Example: 'abcabcbb' -> 'abc...

Software Developer Intern Interview Questions Asked at Other Companies for Fresher

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an ar ... read more
asked in Amazon
Q2. Fish Eater Problem Statement In a river where water flows from le ... read more
asked in Apple
Q3. Kevin and his Fruits Problem Statement Kevin has 'N' buckets, eac ... read more
asked in CommVault
Q4. Sliding Maximum Problem Statement Given an array of integers ARR ... read more
Q5. Reverse Words in a String: Problem Statement You are given a stri ... read more
A Software Developer Intern was asked 7mo ago
Q. Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If the target exists, then return its index, otherwise, return -1.
Ans. 

Binary search is an efficient algorithm for finding an item from a sorted list of items.

  • Binary search works on sorted arrays. Example: [1, 2, 3, 4, 5].

  • It divides the search interval in half. If the target is less than the middle element, search the left half.

  • Time complexity is O(log n), making it faster than linear search (O(n)).

  • Example: To find 3 in [1, 2, 3, 4, 5], check middle (3), found it immediately.

  • If the t...

🔥 Asked by recruiter 2 times
A Software Developer Intern was asked 8mo ago
Q. You are given an m x n grid where each cell can have one of three values: 0 representing an empty cell, 1 representing a fresh orange, or 2 representing a rotten orange. Every minute, any fresh orange that ...
Ans. 

The Rotten Oranges problem involves determining the time taken for all oranges to rot in a grid.

  • Model the grid as a graph where each cell represents an orange.

  • Use BFS to simulate the rotting process, starting from all initially rotten oranges.

  • Count the minutes taken for all reachable fresh oranges to rot.

  • Example: In a 2D grid, rotten oranges spread to adjacent fresh oranges every minute.

What people are saying about Amazon

View All
sparklingfettuccine
Verified Icon
3d
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 Software Developer Intern was asked 9mo ago
Q. Given an array of integers, find the minimum sum of any contiguous subarray.
Ans. 

Find the minimum sum of a subarray within an array of integers.

  • Iterate through the array and keep track of the current sum of subarray

  • Update the minimum sum if a smaller sum is found

  • Consider using Kadane's algorithm for an efficient solution

A Software Developer Intern was asked 9mo ago
Q. Given two strings s and t, return the minimum window in s which will contain all the characters in t. If there is no such window in s that covers all characters in t, return the empty string "".
Ans. 

Find the smallest substring in a string that contains all characters of another string.

  • Use two pointers to maintain a sliding window over the string.

  • Count characters in the target string using a hash map.

  • Expand the window by moving the right pointer and contract it by moving the left pointer.

  • Example: For s = 'ADOBECODEBANC' and t = 'ABC', the result is 'BANC'.

  • Keep track of the minimum length and starting index of ...

A Software Developer Intern was asked 10mo ago
Q. Given an array of characters where each character represents a type of fruit, you are given two baskets, and each basket can hold any quantity of one type of fruit. What is the maximum number of fruits you ...
Ans. 

Sliding window problem where you can only pick fruits from two different baskets

  • Use a sliding window approach to keep track of the maximum number of fruits in two baskets

  • Keep track of the types of fruits and their counts in the window

  • Update the window by removing fruits from the beginning and adding fruits from the end

  • Keep track of the maximum number of fruits seen so far

Are these interview questions helpful?
A Software Developer Intern was asked 11mo ago
Q. How do you find the median of a continuously running data stream?
Ans. 

Finding the median of a data stream efficiently

  • Use two heaps - a max heap to store the smaller half of the data and a min heap to store the larger half

  • Keep the two heaps balanced by ensuring the size difference is at most 1

  • If the total number of elements is odd, the median is the top element of the larger heap. If even, it's the average of the top elements of both heaps

A Software Developer Intern was asked 12mo ago
Q. Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
Ans. 

Traverse a tree to display only nodes from the right side

  • Start traversal from the root node

  • Visit the right child node first before the left child node

  • Use a stack or queue data structure for traversal

  • Example: Inorder traversal with right child first

A Software Developer Intern was asked
Q. Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizonta...
Ans. 

Count the number of connected components in a grid

  • Use Depth First Search (DFS) or Breadth First Search (BFS) to traverse the grid

  • Keep track of visited nodes to avoid revisiting them

  • Each connected component will have its own set of connected nodes

Amazon Software Developer Intern Interview Experiences for Freshers

96 interviews found

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

I applied via LinkedIn and was interviewed in Sep 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Easy Questions- Can be done with decent practice

Round 2 - Technical 

(2 Questions)

  • Q1. Array question - basic knowledge sufficient
  • Q2. Maths questions + stack implementation
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
-
Result
Not Selected
Round 1 - Coding Test 

Coding test had 2 medium level coding questions

Round 2 - One-on-one 

(2 Questions)

  • Q1. The first question was of sliding window plus DP
  • Q2. The second was of trees
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

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

Round 1 - Coding Test 

2 coding questions of easy to medium difficulty

Round 2 - Technical 

(2 Questions)

  • Q1. A derivative of rotten oranges.
  • Q2. An sliding window problem similar to Maximum number of fruits in two basket
  • Ans. 

    Sliding window problem where you can only pick fruits from two different baskets

    • Use a sliding window approach to keep track of the maximum number of fruits in two baskets

    • Keep track of the types of fruits and their counts in the window

    • Update the window by removing fruits from the beginning and adding fruits from the end

    • Keep track of the maximum number of fruits seen so far

  • Answered by AI

Skills evaluated in this interview

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

I applied via Campus Placement and was interviewed in Aug 2024. There were 2 interview rounds.

Round 1 - Coding Test 

2 leetcode easy problems, arrays and strings.

Round 2 - One-on-one 

(2 Questions)

  • Q1. Minimum window substring
  • Ans. 

    Find the smallest substring in a string that contains all characters of another string.

    • Use two pointers to maintain a sliding window over the string.

    • Count characters in the target string using a hash map.

    • Expand the window by moving the right pointer and contract it by moving the left pointer.

    • Example: For s = 'ADOBECODEBANC' and t = 'ABC', the result is 'BANC'.

    • Keep track of the minimum length and starting index of valid...

  • Answered by AI
  • Q2. Minimum sum of subarray
  • Ans. 

    Find the minimum sum of a subarray within an array of integers.

    • Iterate through the array and keep track of the current sum of subarray

    • Update the minimum sum if a smaller sum is found

    • Consider using Kadane's algorithm for an efficient solution

  • Answered by AI

Skills evaluated in this interview

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

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

  • Q1. BFS of graph
  • Ans. 

    BFS (Breadth-First Search) is an algorithm for traversing or searching tree or graph data structures level by level.

    • Level Order Traversal: BFS explores all neighbors at the present depth prior to moving on to nodes at the next depth level.

    • Queue Data Structure: BFS uses a queue to keep track of nodes to be explored, ensuring nodes are processed in the order they are discovered.

    • Shortest Path: In unweighted graphs, BFS ca...

  • Answered by AI
  • Q2. Behavioural questions
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I appeared for an interview in Dec 2024, where I was asked the following questions.

  • Q1. The interviewer provided a brief introduction before inquiring about my background, then immediately proceeded to data structures and algorithms; my first question was the "Number of Islands" problem from ...
  • Q2. I was asked to provide an optimal approach for the problem "Maximum Area by Changing One 0 to 1," but since I had not addressed it earlier, I was unable to respond effectively.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 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 

It had very basic dsa problem I don't not remember the exact question. It was based on array manipulation.

Round 2 - One-on-one 

(2 Questions)

  • Q1. Rotten oranges graph question
  • Ans. 

    The Rotten Oranges problem involves determining the time taken for all oranges to rot in a grid.

    • Model the grid as a graph where each cell represents an orange.

    • Use BFS to simulate the rotting process, starting from all initially rotten oranges.

    • Count the minutes taken for all reachable fresh oranges to rot.

    • Example: In a 2D grid, rotten oranges spread to adjacent fresh oranges every minute.

  • Answered by AI
  • Q2. One standard dp question which could be solved in 4-5 line of code
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Jun 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Basic aptitude and data structures along with some personality based questions

Round 2 - Technical 

(2 Questions)

  • Q1. Coding question on sliding window algorithm
  • Ans. 

    The sliding window algorithm efficiently solves problems involving contiguous subarrays or substrings.

    • Used to find maximum/minimum in a subarray of fixed size. Example: max sum of any 3 consecutive elements.

    • Helps in counting distinct elements in a substring. Example: count of unique characters in 'abcabc'.

    • Can be applied to problems like longest substring without repeating characters. Example: 'abcabcbb' -> 'abc'.

    • Use...

  • Answered by AI
  • Q2. Standard leetcode medium problem on binary search
  • Ans. 

    Binary search is an efficient algorithm for finding an item from a sorted list of items.

    • Binary search works on sorted arrays. Example: [1, 2, 3, 4, 5].

    • It divides the search interval in half. If the target is less than the middle element, search the left half.

    • Time complexity is O(log n), making it faster than linear search (O(n)).

    • Example: To find 3 in [1, 2, 3, 4, 5], check middle (3), found it immediately.

    • If the target...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - practise well before the interviews
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

LC Medium - 2 questions

Round 2 - One-on-one 

(2 Questions)

  • Q1. LC Medium on two-pointers
  • Ans. 

    Two-pointer technique is used to solve problems involving arrays or linked lists by using two pointers to traverse the data structure.

    • Start with two pointers at different positions in the array or linked list

    • Move the pointers based on the problem requirements (e.g. one pointer moves faster than the other)

    • Commonly used in problems like finding a pair of elements that sum up to a target value

  • Answered by AI
  • Q2. LC Medium-Hard on DP

Skills evaluated in this interview

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

I applied via Referral and was interviewed in Mar 2024. There was 1 interview round.

Round 1 - One-on-one 

(2 Questions)

  • Q1. Sliding window question
  • Q2. Trees medium level

Interview Preparation Tips

Topics to prepare for Amazon Software Developer Intern interview:
  • DSA

Amazon Interview FAQs

How many rounds are there in Amazon Software Developer Intern interview for freshers?
Amazon interview process for freshers usually has 2-3 rounds. The most common rounds in the Amazon interview process for freshers are Coding Test, Technical and One-on-one Round.
What are the top questions asked in Amazon Software Developer Intern interview for freshers?

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

  1. First question was on binary search in which you were given two arrays and an i...read more
  2. Second question was a variation of stock span problem. You were given an array ...read more
  3. Heap based( where if two rocks have same weight, eliminate both, otherwise keep...read more
How long is the Amazon Software Developer Intern interview process?

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

Tell us how to improve this page.

Overall Interview Experience Rating

4.3/5

based on 39 interview experiences

Difficulty level

Easy 15%
Moderate 74%
Hard 11%

Duration

Less than 2 weeks 45%
2-4 weeks 48%
4-6 weeks 7%
View more

Interview Questions from Similar Companies

Uber Interview Questions
4.2
 • 155 Interviews
Expedia Group Interview Questions
3.7
 • 78 Interviews
LinkedIn Interview Questions
4.3
 • 69 Interviews
OLX Interview Questions
3.8
 • 60 Interviews
Facebook Interview Questions
4.3
 • 55 Interviews
Uplers Interview Questions
3.9
 • 43 Interviews
Groupon Interview Questions
3.1
 • 42 Interviews
Fareportal Interview Questions
3.3
 • 32 Interviews
Yahoo Interview Questions
4.6
 • 30 Interviews
Airbnb Interview Questions
3.7
 • 25 Interviews
View all
Amazon Software Developer Intern Salary
based on 42 salaries
₹5 L/yr - ₹11.3 L/yr
27% more than the average Software Developer Intern Salary in India
View more details

Amazon Software Developer Intern Reviews and Ratings

based on 91 reviews

4.3/5

Rating in categories

4.3

Skill development

3.6

Work-life balance

4.6

Salary

3.1

Job security

3.9

Company culture

3.8

Promotions

4.0

Work satisfaction

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

₹1.8 L/yr - ₹5 L/yr

Transaction Risk Investigator
3.1k salaries
unlock blur

₹2.4 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.3k salaries
unlock blur

₹22.9 L/yr - ₹42.8 L/yr

Explore more salaries
Compare Amazon with

Flipkart

3.9
Compare

TCS

3.6
Compare

Google

4.4
Compare

Netflix

4.0
Compare
write
Share an Interview