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, Process, and Tips

Updated 24 Mar 2025

Top Amazon Software Developer Intern Interview Questions and Answers

  • Q1. Fish Eater Problem Statement In a river where water flows from left to right, there is a sequence of 'N' fishes each having different sizes and speeds. The sizes of thes ...read more
  • Q2. First Missing Positive Problem Statement You are provided with an integer array ARR of length 'N'. Your objective is to determine the first missing positive integer usin ...read more
  • Q3. Container with Most Water Problem Statement Given a sequence of 'N' space-separated non-negative integers A[1], A[2], ..., A[i], ..., A[n], where each number in the sequ ...read more
View all 189 questions

Amazon Software Developer Intern Interview Experiences

95 interviews found

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 2 hour 30 mins
Round difficulty - Easy

Debugging: This section had 7 debugging problems, which consist of code snippets that have some logical error that needs to be rectified.
Reasoning Ability: This section consists of some verbal reasoning questions and some aptitude questions.
Coding: This section consists of 2 coding problems.

  • Q1. 

    Search in a Row-wise and Column-wise Sorted Matrix Problem Statement

    You are given an N * N matrix of integers where each row and each column is sorted in increasing order. Your task is to find the positi...

  • Ans. 

    Given a sorted N * N matrix, find the position of a target integer X within the matrix.

    • Iterate over each row and column to search for the target integer X

    • Utilize the sorted nature of the matrix to optimize the search process

    • Return the position of X if found, else return -1 -1

  • Answered by AI
  • Q2. 

    Clone Linked List with Random Pointer Problem Statement

    Given a linked list where each node has two pointers: one pointing to the next node and another which can point randomly to any node in the list or ...

  • Ans. 

    Cloning a linked list with random pointers by creating new nodes rather than copying references.

    • Create a deep copy of the linked list by iterating through the original list and creating new nodes with the same values.

    • Update the random pointers of the new nodes by mapping the original node's random pointer index to the corresponding new node.

    • Ensure the cloned linked list is an exact copy of the original by validating th...

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Around 30 candidates were shortlisted from my campus and over 150+ candidates were shortlisted from the university, and I was one of them. Then my first round of interviews was scheduled. I was pretty nervous before the interview.

  • Q1. 

    Return in Row Wave Form Problem Statement

    You are provided with a 2D array having dimensions 'N*M'. Your task is to traverse the elements row-wise and return a single-dimensional array which stores these ...

  • Ans. 

    Traverse a 2D array row-wise and return elements in a wave pattern.

    • Traverse the 2D array row-wise and store elements alternately in a wave pattern.

    • For each row, store elements from left to right for odd rows and from right to left for even rows.

    • Return the final 1D array representing the wave pattern of elements.

  • Answered by AI
  • Q2. 

    Strict Binary Tree Construction

    Given two lists, one representing the preorder traversal ('PRE') of a strict binary tree and the other ('TYPENL') indicating if each node is a leaf ('L') or non-leaf ('N')....

  • Ans. 

    Construct a strict binary tree from preorder traversal and leaf/non-leaf indicators.

    • Create a binary tree node class with value and left/right pointers.

    • Use a stack to keep track of parent nodes while constructing the tree.

    • Check if the current node is a leaf or non-leaf based on 'TYPENL' list.

  • Answered by AI
Round 3 - Video Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

My interviewer introduced himself in the beginning and asked for my introduction.

  • Q1. 

    Alien Dictionary Problem Statement

    You've been provided with a sorted dictionary in an alien language. Your task is to determine the character order of this alien language from this dictionary. The dictio...

  • Ans. 

    Given a sorted dictionary in an alien language, determine the character order of the language.

    • Iterate through the dictionary to find the order of characters based on their appearance in words.

    • Create a graph of characters and their relationships based on adjacent words in the dictionary.

    • Perform a topological sort on the graph to determine the character order.

    • Return the list of characters in the correct order as the outp

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in HyderabadEligibility criteriaAbove 7 CGPAAmazon interview preparation:Topics to prepare for the interview - Data Structures, OOPS, Algorithms, DBMS, OS, NetworksTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 : Practice ds and algo
Tip 2 : Be confident
Tip 3 : Speak out loud and Be clear

Application resume tips for other job seekers

Tip 1 : Mention only what you know
Tip 2 : Having Cp ranks is a plus

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 150 Minutes
Round difficulty - Easy

Debugging: This section had 7 debugging problems, which consist of code snippets that have some logical error that needs to be rectified.
Reasoning Ability: This section consists of some verbal reasoning questions and some aptitude questions.
Coding: This section consists of 2 coding problems.

  • Q1. 

    Search in a Row-wise and Column-wise Sorted Matrix Problem Statement

    You are given an N * N matrix of integers where each row and each column is sorted in increasing order. Your task is to find the positi...

  • Ans. 

    Given a sorted N * N matrix, find the position of a target integer 'X'.

    • Iterate over each row and column to search for the target integer 'X'.

    • Utilize the sorted nature of the matrix to optimize the search process.

    • Return the position of 'X' if found, else return '-1 -1'.

  • Answered by AI
  • Q2. 

    Clone Linked List with Random Pointer Problem Statement

    Given a linked list where each node has two pointers: one pointing to the next node and another which can point randomly to any node in the list or ...

  • Ans. 

    Deep copy a linked list with random pointers and return its head. Validate if the cloned linked list is an exact copy of the original.

    • Create a new node for each node in the original linked list and maintain a mapping between original and cloned nodes.

    • Update the next and random pointers of the cloned nodes based on the mapping.

    • Time complexity: O(N) where N is the number of nodes in the linked list.

    • Space complexity: O(N)...

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Around 30 candidates were shortlisted from my campus and over 150+ candidates were shortlisted from the university, and I was one of them. Then my first round of interviews was scheduled. I was pretty nervous before the interview.

  • Q1. 

    Row Wave Form Problem Statement

    Given a 2D array with dimensions N*M, your task is to read the array elements in a row-wise manner and return a linear array that stores the elements in a 'wave' pattern. S...

  • Ans. 

    Given a 2D array, return a linear array storing elements in a 'wave' pattern.

    • Read the array elements row-wise and store in wave pattern

    • Alternate direction for storing elements from each row

    • Handle edge cases like single row or single column arrays

    • Use nested loops to iterate through the 2D array

  • Answered by AI
  • Q2. 

    Construct a Strict Binary Tree Problem

    Given an array/list of integers PRE representing the preorder traversal of a strict binary tree, and an array/list TYPENL with values 'L' or 'N', where 'L' denotes a...

  • Ans. 

    Given preorder traversal and node type information, construct a strict binary tree and return the root node.

    • Create a binary tree using preorder traversal and node type information

    • Use recursion to construct the tree

    • Handle leaf and non-leaf nodes separately

    • Ensure each node has 0 or 2 children

  • Answered by AI
Round 3 - Video Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

My interviewer introduced himself in the beginning and asked for my introduction.

  • Q1. 

    Alien Dictionary Problem Statement

    You are provided with a sorted dictionary (by lexical order) in an alien language. Your task is to determine the character order of the alien language from this dictiona...

  • Ans. 

    Given a sorted alien dictionary in an alien language, determine the character order of the language.

    • Iterate through the dictionary to build a graph of character dependencies.

    • Perform a topological sort on the graph to determine the character order.

    • Return the character array representing the order of characters in the alien language.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in HyderabadEligibility criteriaAbove 7 CGPAAmazon interview preparation:Topics to prepare for the interview - Data Structures, OOPS, Algorithms, DBMS, OS, NetworksTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 : Practice ds and algo
Tip 2 : Be confident
Tip 3 : Speak out loud and be clear

Application resume tips for other job seekers

Tip 1 : Mention only what you know
Tip 2 : Having Cp ranks is a plus

Final outcome of the interviewSelected

Skills evaluated in this interview

Software Developer Intern Interview Questions Asked at Other Companies

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

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 180 minutes
Round difficulty - Easy

The online round consisted of 2 coding questions based on data structures and algorithms, 30 aptitude MCQs, 30 behavioral MCQs and 10 code snippets to debug. The coding questions were of medium level, aptitude MCQs were easy and the code snippets to debug was also of easy level. Each section was timed.

  • Q1. 

    Palindrome Linked List Problem Statement

    You are provided with a singly linked list of integers. Your task is to determine whether the given singly linked list is a palindrome. Return true if it is a pali...

  • Ans. 

    Check if a given singly linked list is a palindrome or not.

    • Use two pointers approach to find the middle of the linked list

    • Reverse the second half of the linked list

    • Compare the first half with the reversed second half to determine if it's a palindrome

  • Answered by AI
  • Q2. 

    Total Unique Paths Problem Statement

    You are located at point ‘A’, the top-left corner of an M x N matrix, and your target is point ‘B’, the bottom-right corner of the same matrix. Your task is to calcula...

  • Ans. 

    Calculate total unique paths from top-left to bottom-right corner of a matrix by moving only right or down.

    • Use dynamic programming to solve this problem efficiently.

    • Create a 2D array to store the number of unique paths for each cell.

    • Initialize the first row and first column with 1 as there is only one way to reach them.

    • For each cell, the number of unique paths is the sum of the paths from the cell above and the cell to...

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 50 minutes
Round difficulty - Easy

The interview was early in the morning at 9 am. We turned on our videos and the interviewer asked for my introduction. She was helpful and provided me with hints whenever I needed. The interview was taken on Amazon chime and she also shared a link where I can write the code. It could be editable by both of us.

  • Q1. 

    Number of Islands Problem Statement

    You are provided with a 2-dimensional matrix having N rows and M columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...

  • Ans. 

    Count the number of islands in a 2D matrix of 1s and 0s.

    • Use Depth First Search (DFS) or Breadth First Search (BFS) to traverse the matrix and identify connected groups of 1s.

    • Maintain a visited array to keep track of visited cells to avoid redundant traversal.

    • Increment the island count each time a new island is encountered.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Chitkara University. Eligibility criteriaCandidate must be femaleAmazon interview preparation:Topics to prepare for the interview - C++, Data Structures(Focus more on trees and graphs), Dynamic Programming, Algorithms, Operating Systems, Object Oriented Programming, Database Management System, Computer NetworksTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : You must confidence over Data Structures and its concepts. Pick one coding platform and try to practice at least 5-6 coding questions everyday. I completed around 200+ questions on Leetcode, 200+ questions on Geek For Geeks.
Tip 2 : Not attempting the question is enough. try to analyze its time and space complexity. See, if you can further optimize your solution. Sometimes the interviewer asks only one question and keep on increasing its difficulty by asking for its optmization.
Tip 3 : Apart from coding questions keep studying concepts of Operating Systems, databases and object oriented programming. You can always refer to Geeks For Geeks articles for it. Also, Coding Ninja's Data Structures and algorithms course in C++ helped me a lot in improving my OOPS concepts specifically.

Application resume tips for other job seekers

Tip 1 : Do not mention any skills, projects or achievements which you haven't completed yourselves. If you are not able to answer the basic questions it leaves a bad impact.
Tip 2 : You do need to have a lot of projects. Only one good project with proper knowledge is also fine. The same goes for the skills as well.
Tip 3 : Try to write achievements which shows your technical skills, communication skills, leadership quality or teamwork.

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

It contains 20 MCQs, based on the output of the given code and next followed by 2 programming questions. To get qualified for the next round you need to solve the 2 programming questions completely. The next rounds will be interviews. They had given 3 days time to attempt the first round.

  • Q1. 

    Maximum Path Sum in a Matrix

    Given an N*M matrix filled with integer numbers, determine the maximum sum that can be obtained from a path starting from any cell in the first row to any cell in the last row...

  • Ans. 

    Find the maximum sum path in a matrix from top row to bottom row by moving down or diagonally.

    • Use dynamic programming to keep track of maximum sum at each cell.

    • At each cell, the maximum sum is the current cell value plus the maximum of the three possible previous cells.

    • Iterate through the matrix row by row and update the maximum sum at each cell.

    • Return the maximum sum found in the last row as the result.

  • Answered by AI
  • Q2. 

    Dice Throws Problem Statement

    You are given D dice, each having F faces numbered from 1 to F. The task is to determine the number of possible ways to roll all the dice such that the sum of the face-up num...

  • Ans. 

    The task is to determine the number of possible ways to roll all the dice such that the sum of the face-up numbers equals the given 'target' sum.

    • Use dynamic programming to solve the problem efficiently.

    • Create a 2D array to store the number of ways to reach each sum with each dice.

    • Iterate through the dice and sum values to fill up the array.

    • Return the result modulo 10^9 + 7.

    • Optimize the solution to use no more than O(S)

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 50 minutes
Round difficulty - Hard

  • Q1. 

    Palindrome Permutation - Problem Statement

    Determine if a permutation of a given string S can form a palindrome.

    Example:

    Input:
    string S = "aab"
    Output:
    "True"
    Explanation:

    The permutation "aba" o...

  • Ans. 

    Check if a permutation of a string can form a palindrome.

    • Create a frequency map of characters in the string.

    • Count the number of characters with odd frequencies.

    • If there is at most one character with an odd frequency, the string can form a palindrome.

  • Answered by AI
  • Q2. 

    Longest Common Subsequence Problem Statement

    Given two strings STR1 and STR2, determine the length of their longest common subsequence.

    A subsequence is a sequence that can be derived from another sequen...

  • Ans. 

    The problem involves finding the length of the longest common subsequence between two given strings.

    • Implement a function to find the longest common subsequence length between two strings.

    • Use dynamic programming to solve the problem efficiently.

    • Iterate through the strings and build a matrix to store the lengths of common subsequences.

    • Return the value in the bottom-right cell of the matrix as the result.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from B V Raju Institute of Technology. Eligibility criteriaabove 6.5 CGPA, no backlogsAmazon interview preparation:Topics to prepare for the interview - Dynamic Programming, Trees, Graphs, LinkedlIists, OOPsTime required to prepare for the interview - 1 monthInterview preparation tips for other job seekers

Tip 1 : Be thorough with Algorithm and Data Structures concepts.
Tip 2 : Try solving programming questions, mainly focus on the constraints before start writing the code.
Tip 3 : Try to find out an optimal solution.

Application resume tips for other job seekers

Tip 1 : Include the projects you have done.
Tip 2 : Only include the programming languages, technologies you are thorough with.

Final outcome of the interviewRejected

Skills evaluated in this interview

Amazon interview questions for designations

 Software Engineer Intern

 (13)

 Software Developer

 (191)

 Junior Software Developer

 (3)

 Senior Software Developer

 (1)

 Java Software Developer

 (1)

 Frontend Developer Intern

 (1)

 Python Developer Intern

 (1)

 Full Stack Software Developer

 (1)

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 140 minutes
Round difficulty - Medium

Timing: 7 pm

  • Q1. 

    Minimum Cost to Cross a Grid

    You are given a 2D grid consisting of 'N' rows and 'M' columns. Each cell in the grid has a certain cost associated with passing through it. Your goal is to find the minimum c...

  • Ans. 

    Find the minimum cost to travel from top-left to bottom-right corner of a grid.

    • Use dynamic programming to keep track of minimum cost to reach each cell.

    • Start from top-left corner and iterate through the grid to calculate minimum cost.

    • Consider all possible movements (UP, DOWN, LEFT, RIGHT) while staying within grid boundaries.

    • Update the cost for each cell by considering the minimum cost of reaching adjacent cells.

    • The fi...

  • Answered by AI
  • Q2. 

    Sub Matrices With Sum Zero Problem Statement

    You are provided with a square matrix 'MAT' of order N. Your task is to determine the number of non-empty sub-matrices where the sum of all elements within the...

  • Ans. 

    Count the number of sub-matrices with sum zero in a square matrix.

    • Iterate over all possible sub-matrices and calculate the sum of elements within each sub-matrix.

    • Use a hashmap to store the prefix sum of rows or columns to efficiently calculate the sum of sub-matrices.

    • Check for sub-matrices with sum zero and increment the count accordingly.

    • Return the total count of sub-matrices with sum zero.

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Easy

Timing : 2 pm
The interviewer was very friendly.

  • Q1. 

    Boundary Values of a Binary Tree Problem Statement

    Given a binary tree of integers, your task is to print the boundary nodes of this binary tree in an anti-clockwise direction starting from the root node.

    ...
  • Ans. 

    Print the boundary nodes of a binary tree in an anti-clockwise direction starting from the root node.

    • Traverse the left boundary nodes in a top-down manner

    • Traverse the leaf nodes from left to right

    • Traverse the right boundary nodes in a bottom-up manner

    • Avoid duplicates while printing the boundary nodes

  • Answered by AI
  • Q2. 

    Segregate Even and Odd Nodes in a Linked List

    You are given the head node of a singly linked list head. Your task is to modify the linked list so that all the even-valued nodes appear before all the odd-v...

  • Ans. 

    Reorder a singly linked list such that even-valued nodes appear before odd-valued nodes while preserving the original order.

    • Create two separate linked lists for even and odd nodes.

    • Traverse the original list and append nodes to their respective lists based on their values.

    • Finally, merge the even list followed by the odd list to get the desired order.

  • Answered by AI

Interview Preparation Tips

Eligibility criteria65% in 12thAmazon interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, Operating System, DBMS , OOPSTime required to prepare for the interview - 7-8 monthsInterview preparation tips for other job seekers

Tip 1 : Create a timetable and set goals. Keep aside 3-4 hours for studying. Consistency is the key.
Tip 2 : Do atleast 2 projects
Tip 3 : Know the complexities of the code that you’ve written.

Application resume tips for other job seekers

Tip 1 : Do not put false things on resume.
Tip 2 : You should have good projects to showcase.

Final outcome of the interviewRejected

Skills evaluated in this interview

Get interview-ready with Top Amazon Interview Questions

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 180 Minutes
Round difficulty - Medium

Round 1 was a coding test which consisted of 4 sections.
1st section.
There were 7 debugging questions which was to be solved in 20 minutes.
A code was given which we have to debug and it should pass all the test cases. If you have a basic understanding of loops and concepts then this section is easy.

2nd section.
There were 2 coding questions which were to be done in 70 minutes.

3rd section
This section was more about behaviour and nature.

4th section 
There were 35 reasoning based questions, which was to be done in 24 minutes.

  • Q1. 

    Merge Two Sorted Linked Lists Problem Statement

    You are provided with two sorted linked lists. Your task is to merge them into a single sorted linked list and return the head of the combined linked list.

    ...
  • Ans. 

    Merge two sorted linked lists into a single sorted linked list without using additional space.

    • Create a dummy node to start the merged list

    • Compare the nodes of both lists and link them accordingly

    • Move the pointer to the next node in the merged list

    • Handle cases where one list is empty or both lists are empty

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

  • Answered by AI
  • Q2. 

    Word Break Problem Statement

    You are given a list of N strings called A. Your task is to determine whether you can form a given target string by combining one or more strings from A.

    The strings from A c...

  • Ans. 

    Given a list of strings, determine if a target string can be formed by combining one or more strings from the list.

    • Iterate through all possible combinations of strings from the list to form the target string.

    • Use recursion to try different combinations of strings.

    • Check if the current combination forms the target string.

    • Return true if a valid combination is found, otherwise return false.

  • Answered by AI
Round 2 - Video Call 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Round 2 was 1-hour long technical interview. It was on 20th June 2020, from 10 AM to 11 AM. The round started with the introductions and then the discussion on projects.

  • Q1. 

    Add Two Numbers as Linked Lists

    You are given two singly linked lists, where each list represents a positive number without any leading zeros.

    Your task is to add these two numbers and return the sum as ...

  • Ans. 

    Add two numbers represented as linked lists and return the sum as a linked list.

    • Traverse both linked lists simultaneously while adding corresponding nodes and carry over the sum if needed

    • Handle cases where one linked list is longer than the other by adding remaining nodes with carry

    • Create a new linked list to store the sum and return its head node

  • Answered by AI
  • Q2. 

    Course Schedule Problem Statement

    You are enrolled as a student and must complete N courses, numbered from 1 to N, to earn your degree.

    Some courses have prerequisites, which means that to take course i,...

  • Ans. 

    Determine if it is feasible to complete all courses with given prerequisites.

    • Create a graph representation of the courses and prerequisites.

    • Check for cycles in the graph using topological sorting.

    • If there are no cycles, all courses can be completed.

    • Example: For N=2 and prerequisites=[[1, 2]], output is 'Yes'.

  • Answered by AI
  • Q3. What are the ACID properties in a database management system?
  • Ans. 

    ACID properties are a set of properties that guarantee the reliability of transactions in a database management system.

    • Atomicity: Ensures that either all operations in a transaction are completed successfully or none at all.

    • Consistency: Ensures that the database remains in a consistent state before and after the transaction.

    • Isolation: Ensures that the execution of multiple transactions concurrently does not interfere w...

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Indira Gandhi Delhi Technical University for Women. I applied for the job as SDE - Intern in BangaloreEligibility criteriaNoneAmazon interview preparation:Topics to prepare for the interview - Data Structures, DBMS, OOPS, CN, Algorithms, Dynamic ProgrammingTime required to prepare for the interview - 4 MonthsInterview preparation tips for other job seekers

Tip 1 : Practice your problem-solving skills
Tip 2 : Do at least 2 projects

Application resume tips for other job seekers

Tip 1 : Avoid grammatical errors
Tip 2 : Avoid adding unnecessary information

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Sep 2020.

Round 1 - Video Call 

(3 Questions)

Round duration - 120 minutes
Round difficulty - Medium

The round was based on DSA and CS fundamentals.
Three DSA questions were asked, in each of them I had to properly explain my approach and then code the entire solution.
After the DSA questions, I was asked questions on CS fundamentals.

  • Q1. 

    Triplet Count in a Sorted Doubly Linked List Problem

    Count the number of triplets in a sorted doubly linked list such that their sum equals a given integer 'X'. The list is composed of distinct node value...

  • Ans. 

    Count the number of triplets in a sorted doubly linked list such that their sum equals a given integer 'X'.

    • Iterate through the linked list and for each node, use two pointers to find the other two nodes that sum up to 'X'.

    • Keep track of the count of triplets found while traversing the list.

    • Return the final count of triplets that sum up to 'X'.

  • Answered by AI
  • Q2. 

    Number of Islands Problem Statement

    Given a non-empty grid of 0s and 1s, determine the number of distinct islands. An island is a collection of '1's (land) connected horizontally, vertically, or diagonall...

  • Ans. 

    The task is to determine the number of distinct islands in a grid of 0s and 1s connected horizontally, vertically, or diagonally.

    • Iterate through the grid and perform depth-first search (DFS) to explore each island

    • Use a set to keep track of visited cells to avoid counting the same island multiple times

    • Increment the count of islands whenever a new island is encountered

  • Answered by AI
  • Q3. 

    Flip Bits Problem Explanation

    Given an array of integers ARR of size N, consisting of 0s and 1s, you need to select a sub-array and flip its bits. Your task is to return the maximum count of 1s that can b...

  • Ans. 

    Given an array of 0s and 1s, find the maximum count of 1s by flipping a sub-array at most once.

    • Iterate through the array and keep track of the maximum count of 1s obtained by flipping a sub-array.

    • Consider flipping a sub-array only when it results in increasing the count of 1s.

    • Update the maximum count of 1s as you iterate through the array.

    • Return the maximum count of 1s obtained after considering all possible sub-arrays

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from The LNM Institute of Information Technology. I applied for the job as SDE - Intern in HyderabadEligibility criteriaAbove 7 CGPAAmazon interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, Operating System, OOPS, DBMSTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Practice topic-wise questions from Leetcode. After solving every question, you should see the top Discuss posts and keep on improving.
Tip 2 : Go through the past year's interview experiences which will give you an idea of the kind of questions asked in Amazon.
Tip 3 : Prepare the Computer Science fundamentals well.
Tip 4 : Instead of covering every topic in-depth, try to first cover all the topic at a basic level.

Application resume tips for other job seekers

Tip 1 : You should not write false things in your resume.
Tip 2 : Be prepared to answer questions on anything that you have mentioned in the resume. Prepare it well.

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Sep 2020.

Round 1 - Video Call 

(2 Questions)

Round duration - 55 minutes
Round difficulty - Medium

It was a coding interview that started with introducing myself. Two questions from data structures were asked.

  • Q1. 

    Matrix Median Problem Statement

    You are provided with a matrix containing 'N' rows and 'M' columns filled with integers. Each row is sorted in non-decreasing order. Your task is to find the overall median...

  • Ans. 

    Find the overall median of a matrix with sorted rows.

    • Merge all elements of the matrix into a single sorted array

    • Calculate the median of the merged array

    • Handle odd number of elements by directly finding the middle element

  • Answered by AI
  • Q2. 

    Count Triplets in a Sorted Doubly Linked List

    You are provided with an integer X and a non-decreasing sorted doubly linked list consisting of distinct nodes.

    Your task is to find and return the count of ...

  • Ans. 

    Count triplets in a sorted doubly linked list that sum up to a given value.

    • Iterate through the list and for each node, find pairs that sum up to X-nodeValue.

    • Use two pointers approach to find pairs efficiently.

    • Keep track of count of triplets found while iterating through the list.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from National Institute of Technology Patna. Eligibility criteriaCircuital branches only || Female onlyAmazon interview preparation:Topics to prepare for the interview - Data Structures, Algoruthms, OOPS, DP, PointersTime required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

Tip 1 : Learn to explain your logic well.
Tip 2 : Learn to dry run your code. 
Tip 3 : Solve as many data structures questions as you can.

Application resume tips for other job seekers

Tip 1 : They did not shortlist resume .
Tip 2 : They did send link to everyone satisfying eligibility criteria.

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Nov 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 180 minutes
Round difficulty - Medium

Were were given the test link and 3 days, we could take the test anytime during these three days and diffrent candidates got different questions in their tests. 
The online assessment consists of the following sections:
Code Debug: In this portion of the online assessment, you will be asked to find bugs in seven pieces of code. 

Coding Test: This portion of the online assessment consists of DS algo questions. There were 2 questions.

Work Styles Assessment: This is built around Amazon’s Leadership Principles, you have to choose what extent a provided statement represents your work style

Logical Ability: During this logical ability section, you will be asked a series of problem solving multiple choice questions.

Once you move to next section, you cannot go back to previous one.

  • Q1. 

    Pair Sum Problem Statement

    You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.

    Note:
    ...
  • Ans. 

    Find pairs of elements in an array that sum up to a given value, sorted in a specific order.

    • Iterate through the array and for each element, check if the complement (S - current element) exists in a hash set.

    • If the complement exists, add the pair to the result list.

    • Sort the result list based on the criteria mentioned in the problem statement.

  • Answered by AI
  • Q2. 

    Running Median Problem

    Given a stream of integers, calculate and print the median after each new integer is added to the stream.

    Output only the integer part of the median.

    Example:

    Input:
    N = 5  
    Stre...
  • Ans. 

    Calculate and print the median after each new integer is added to the stream.

    • Use a min heap to store the larger half of the numbers and a max heap to store the smaller half.

    • Keep the sizes of the two heaps balanced to efficiently calculate the median.

    • If the total number of elements is odd, the median is the top element of the max heap.

    • If the total number of elements is even, the median is the average of the top elements

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in BangaloreEligibility criteriaFemale, CGPA>=6.5, No backlogs, should be in 4th or 6th semAmazon interview preparation:Topics to prepare for the interview - OOPS, Arrays, Two Pointer Approach, Linked List, DPTime required to prepare for the interview - 5 MonthsInterview preparation tips for other job seekers

Tip 1 : Focus on DS Algo and practice as much as you can
Tip 2 : Prepare subjects like DBMS. OOPS and OS (understand the topics with examples)
Tip 3 : Keep your concepts clear

Application resume tips for other job seekers

Tip 1 : Cleaner the better. Keep it to one page only and include details relevant to the job profile
Tip 2 : Include links to your projects or personal portfolios and profiles

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Easy

I solved almost all the MCQs correctly and passed all the test cases for both the questions.

  • Q1. 

    Max GCD Pair Problem Statement

    Given an array of positive integers, determine the Greatest Common Divisor (GCD) of a pair of elements such that it is the maximum among all possible pairs in the array. The...

  • Ans. 

    Find the maximum GCD of a pair of elements in an array of positive integers.

    • Iterate through all pairs of elements in the array to find their GCD.

    • Keep track of the maximum GCD found so far.

    • Use Euclidean algorithm to calculate GCD efficiently.

    • Return the maximum GCD value found.

  • Answered by AI
  • Q2. 

    Kevin and his Fruits Problem Statement

    Kevin has 'N' buckets, each consisting of a certain number of fruits. Kevin wants to eat at least 'M' fruits. He is looking to set a marker as high as possible such ...

  • Ans. 

    Find the marker value needed for Kevin to eat at least 'M' fruits from 'N' buckets.

    • Iterate through each bucket and calculate the difference between the number of fruits and the marker value needed to reach 'M'.

    • Update the marker value to be the maximum of the current marker value and the difference calculated in the previous step.

    • Return the final marker value as the output.

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

  • Q1. 

    Bracket Number Problem Statement

    Given a string S that contains some brackets, your task is to print the number associated with each bracket pair.

    Example:

    Input:
    S = (pq)() 
    Output:
    1 1 2 2
    Explana...
  • Ans. 

    Given a string with brackets, print the number associated with each bracket pair.

    • Iterate through the string and maintain a stack to keep track of opening brackets

    • Assign a number to each pair of opening and closing brackets

    • Print the assigned numbers for each bracket pair

  • Answered by AI
  • Q2. 

    Least Common Ancestor of Two Nodes

    You are given an arbitrary binary tree with 'N' nodes, where the nodes are numbered with values in the range of integers. Given two specific nodes, 'x' and 'y', your tas...

  • Ans. 

    Find the least common ancestor of two nodes in a binary tree.

    • Traverse the tree to find the paths from the root to each node, then compare the paths to find the LCA.

    • Use recursion to traverse the tree efficiently and find the LCA.

    • Handle cases where one or both nodes are not present in the tree by checking for NULL references.

    • The LCA is the node where the paths to the two nodes diverge in the tree.

  • Answered by AI
Round 3 - Video Call 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Medium

  • Q1. 

    Running Median Problem

    Given a stream of integers, calculate and print the median after each new integer is added to the stream.

    Output only the integer part of the median.

    Example:

    Input:
    N = 5  
    Stre...
  • Ans. 

    Calculate and print the median after each new integer is added to a stream of integers.

    • Use a min heap to store the larger half of the numbers and a max heap to store the smaller half.

    • Keep the sizes of the two heaps balanced to efficiently calculate the median.

    • If the total number of elements is odd, the median is the top element of the max heap.

    • If the total number of elements is even, the median is the average of the to

  • Answered by AI
  • Q2. 

    Detect Cycle in a Directed Graph

    Determine if a given directed graph contains a cycle. Your function should return true if the graph contains at least one cycle, and false otherwise.

    Input:

    The first li...
  • Ans. 

    Detect cycle in a directed graph and return true if cycle exists, false otherwise.

    • Use Depth First Search (DFS) to detect cycles in the directed graph.

    • Maintain a visited array to keep track of visited vertices and a recursion stack to keep track of vertices in the current path.

    • If a vertex is visited and is in the recursion stack, then a cycle exists.

    • Return true if a cycle is found, false otherwise.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Electrical Engineering from TIET - Thapar Institute of Engineering And Technology. I applied for the job as SDE - Intern in BangaloreEligibility criteriaAbove 7 CGPAAmazon interview preparation:Topics to prepare for the interview - Data structures, OOPS, Algorithms, Operating System, DBMSTime required to prepare for the interview - 1 monthInterview preparation tips for other job seekers

Tip 1 : Data structures and algorithms are the most fundamental and important thing to prepare.
Tip 2 : Don't ignore OOPS.
Tip 3 : Solve DSA questions regularly.

Application resume tips for other job seekers

Tip 1 : Avoid unnecessary details like hobbies, date of birth, parent's name, photo, etc., and keep it one-pager.
Tip 2 : Add a link to your GitHub, LinkedIn, website, phone number, etc.

Final outcome of the interviewSelected

Skills evaluated in this interview

Amazon Interview FAQs

How many rounds are there in Amazon Software Developer Intern 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.
What are the top questions asked in Amazon Software Developer Intern interview?

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

  1. Find zeroes to be flipped so that number of consecutive 1's is maximis...read more
  2. Find shortest distance between 2 points in a matrix, where 2 points can be anyw...read more
  3. What is the code to calculate the distance between two nodes in a binary tr...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 less than 2 weeks to complete.

Tell us how to improve this page.

Amazon Software Developer Intern Interview Process

based on 41 interviews

3 Interview rounds

  • Coding Test Round
  • Video Call Round - 1
  • Video Call 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 Developer Intern Salary
based on 38 salaries
₹5.2 L/yr - ₹19.4 L/yr
87% 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.9

Promotions

4.0

Work satisfaction

Explore 91 Reviews and Ratings
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