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 17 Feb 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 188 questions

Amazon Software Developer Intern Interview Experiences

94 interviews found

I was interviewed in Nov 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 150 minutes
Round difficulty - Medium

The round began at 3:00 PM. It was an online coding round with four sections. We were not allowed to shuffle between the sections. The sections were :-

1. Logical Reasoning and Verbal Ability for around 35 minutes
2. Debugging for 15 minutes 
3. Coding for 50 minutes
4. Behavorial (like a pscycometric test) for 50 minutes.

  • Q1. 

    Find All Pairs Adding Up to Target

    Given an array of integers ARR of length N and an integer Target, your task is to return all pairs of elements such that they add up to the Target.

    Input:

    The first line ...
  • Q2. 

    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.

    ...
Round 2 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Hard

The round began at 1:00 PM. It was a video call by the technical expert of the company. It was a DS&Algo round. The interviewer was friendly and helped me walk through the problem set. Overall a very lively interaction with quality questions.

  • Q1. 

    Longest Consecutive Sequence Problem Statement

    You are provided with an unsorted array/list ARR of N integers. Your task is to determine the length of the longest consecutive sequence present in the array...

  • Q2. 

    Two Sum in a BST Problem Statement

    Given a Binary Search Tree (BST) and a target value, determine if there exists a pair of node values in the BST whose sum equals the target value.

    Example:

    Input:
    4 2...
Round 3 - Video Call 

(2 Questions)

Round duration - 65 minutes
Round difficulty - Hard

The round was scheduled in the evening on the same day at 6:00 PM. The interviewer was different this time. The overall environment of the interview was good. I felt comfortable and things were more on a smoother pace in this interview.

  • Q1. 

    Connecting Ropes with Minimum Cost

    You are given 'N' ropes, each of varying lengths. The task is to connect all ropes into one single rope. The cost of connecting two ropes is the sum of their lengths. Yo...

  • Q2. 

    Zigzag Binary Tree Traversal Problem Statement

    Determine the zigzag level order traversal of a given binary tree's nodes. Zigzag traversal alternates the direction at each level, starting from left to rig...

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in BangaloreEligibility criteriaAbove 6.5 CGPAAmazon interview preparation:Topics to prepare for the interview - Data Structures, OOPS, Algorithms, Graph Traversal, Priority QueueTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Practice standard Data Structures Questions
Tip 2 : Should have command over the topics on your resume.
Tip 3 : Knowledge of the latest technology domains

Application resume tips for other job seekers

Tip 1 : Having good projects with proper knowledge about them
Tip 2 : Relevant skill set as demanded by the company for the job description.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed in Nov 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 145 Minutes
Round difficulty - Easy

the online round was conducted around 5 pm. Round 1 was the initial online round. It was made up of 4 sections - a code debugging section (20 minutes), a coding test (70 minutes), a workstyles assessment (20 minutes) and a reasoning ability section (35 minutes). For me the level of this online test was way below standard. Code debugging and aptitude part were very very easy. The coding questions that I got were also easy but there were a couple of good questions that other students got. But overall, the level was easy. I think the selection was made totally based on the workstyle assessment. Amazon focuses largely on its 14 leadership principles. Make sure to incorporate these principles in your answers. Again, do not start lying blatantly. Make smart and well thought out lies.

  • Q1. 

    Subtree of Another Tree Problem Statement

    Given two binary trees, T and S, determine whether S is a subtree of T. The tree S should have the same structure and node values as a subtree of T.

    Explanation:

    ...
  • Q2. 

    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...

Round 2 - Video Call 

(3 Questions)

Round duration - 120 minutes
Round difficulty - Easy

This was the first technical interview. This is where it started to feel like Amazon. At first the interviewer gave his introduction, then I introduced myself and afterwards we moved to the coding part. He gave me three questions out of which I coded the solution for two and gave the approach for the third one. He was so helpful throughout the entire interview. I was stuck at the first questions and speaking out loud helped me there as he instantly realized what mistake I was making and quickly pointed it out. Out of all the interviews it was my best experience so far. For technical interviews at amazon you will have to prepare everything as they asked questions on almost all data structures. So, I would suggest you to do as much questions on leetcode as possible. Medium level questions would be enough according to me no need to do a lot of high-level questions. But if you are associated with pep coding then just do the class questions sincerely and you are good to go. Also, one thing I would like to add is to make sure that the variable names that you use are meaningful. Both my interviewers were very satisfied with my code and one of them even thanked me for writing clean code.

  • Q1. 

    Maximum of All Subarrays of Size K

    You are provided with an array A containing N integers. Your task is to determine the maximum element in every contiguous subarray of size K as you move from left to rig...

  • Q2. 

    Chocolate Distribution Problem

    You are given an array/list CHOCOLATES of size 'N', where each element represents the number of chocolates in a packet. Your task is to distribute these chocolates among 'M'...

  • Q3. 

    Find First Repeated Character in a String

    Given a string 'STR' composed of lowercase English letters, identify the character that repeats first in terms of its initial occurrence.

    Example:

    Input:
    STR =...
Round 3 - Video Call 

(1 Question)

Round duration - 90 Minutes
Round difficulty - Medium

This was the second technical round. In this round the emphasis was on time and space complexities. Luckily, I again got a very friendly interviewer who helped me a lot during the interview. The interview started with the introductions then we discussed about one of my projects. I was given only one question to solve which I did with the help of interviewer. There is not much difference between the technical round except the slightly greater emphasis on complexities in the second round.

  • Q1. 

    Snake and Ladder Problem Statement

    Given a 'Snake and Ladder' board with N rows and N columns, where positions are numbered from 1 to (N*N) starting from the bottom left, alternating direction each row, f...

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Bhagwan Parshuram Institute of Technology. I applied for the job as SDE - Intern in HyderabadEligibility criteriaMust be from CSE department, CGPA above 6Amazon interview preparation:Topics to prepare for the interview - Dynamic Programming, Graphs, LinkedList, Trees, BIt ManipulationTime required to prepare for the interview - 6 MonthsInterview preparation tips for other job seekers

Tip 1 : I believe for cracking interviews data structures and algorithms is the only thing that needs to be practiced. 
Tip 2 : Rather than focusing on the number of questions focus on the quality of questions and different approaches for same question.
Tip 3 : The company wants to measure your problem solving skills not the number of submissions you have made on different platforms.

Application resume tips for other job seekers

Tip 1 : Make sure there are no grammatical errors. 
Tip 2 : Whatever projects you are listing on your resume, make sure you have in depth knowledge about those projects even if they are borrowed from somewhere else.

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 was interviewed in Nov 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

Timing (6pm - 8pm)
Environment was user friendly 
As usual the online round had two coding questions and 20 MCQs. This was a pretty easy round and it’s duration was 90 minutes. The round consisted of questions from various domains like Algorithm, Data Structure, Operating System and Aptitude.

A few days after appearing in this round, I was informed that I have been qualified for the next round.

  • Q1. 

    Problem Statement: Sorted Subsequence of Size 3

    Given an array composed of N elements, your task is to identify a subsequence with exactly three elements where these elements maintain a strictly increasin...

  • Ans. Brute Force
    • The idea is to run three nested loops to find a subsequence which satisfies the given condition.
    • Each loop picks one element of the subsequence.
    • The first loop picks the first element for the subsequence.
      • Let the element picked be p present at index i in the array.
    • The second nested loop iterates over the elements present after index i, to the pick the second element for the subsequence.
      • The element picked must b...
  • Answered Anonymously
  • Q2. 

    Check if Two Trees are Mirror

    Given two arbitrary binary trees, your task is to determine whether these two trees are mirrors of each other.

    Explanation:

    Two trees are considered mirror of each other if...

  • Ans. Recursive Approach

    Traverse the tree T in preorder fashion and treat every node of the given tree T as the root, treat it as a subtree and compare the corresponding subtree with the given subtree S for equality. For checking the equality, we can compare all the nodes of the two subtrees.

     

    For two trees ‘S’ and ‘T’ to be mirror images, the following three conditions must be true:

    1. Their root node’s data must be the sam...
  • Answered Anonymously
Round 2 - Video Call 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

Timing (10 am- 11 am)
For this round I had slightly more time than the last, due to the fact that the weekend fell in between.The interviewer was very very cool and helping this time, something which I kept at the last in my list of probable things that can happen during an interview. Duration of this round was around 90 minutes.

This time I had to face three technical questions and one general question on Amazon.

  • Q1. 

    Convert a Binary Search Tree (BST) to a Greater Sum Tree

    Given a Binary Search Tree of integers, transform it into a Greater Sum Tree where each node's value is replaced with the sum of all node values gr...

  • Ans. Naive Approach

    Our very basic intuition is that we are going to traverse the tree node by node through any order traversal (pre-order, in-order, and post-order), and for each node, we will find all the greater nodes, SUM their values and store it. Then, later we replace each node with its corresponding SUM. The steps are as follows

     

    1. We are going to use a HashMap, in which the key represents the value of a node and t...
  • Answered Anonymously
  • Q2. 

    Game of 3 Problem Statement

    Help the Ultimate Ninja Ankush by determining how many groups of sizes 2 and 3 can be formed from a given list of integers such that the sum of each group is divisible by 3.

    I...

  • Ans. Storing the remainders

    The idea is to see the remainder of every element when divided by 3. A set of elements can form a group only if the sun of their remainder is multiple of 3. Therefore we can see that for making a group of 2, we will combine the number with remainder only 0 or combine numbers with remainder 1 & 2. For making a group of 3, we can take the remainder 1 & 2 & 0 or all 0 or all 2 or all 1.&n...

  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in BangaloreEligibility criteriaAbove 7 CGPAAmazon interview preparation:Topics to prepare for the interview - Recursion, Dynamic programming, OOPS, Sysytem Design, TreesTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Do atleast 3 major web dev project
Tip 2 : Practice from interview bit
 

Application resume tips for other job seekers

Tip 1 : Resume should not be more than 1 page
Tip 2 : Be precise

Final outcome of the interviewRejected

Skills evaluated in this interview

I was interviewed in Oct 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 75 minutes
Round difficulty - Easy

This online assessment comprised of 30 questions with 2 coding questions and 28 MCQs.
Coding Questions:
It was one of the most common Dynamic Programming problems: Longest decreasing sub-sequence.
It was an easy question that needed us to find out the mean, median and mode in an array.
The MCQs were difficult that required good understanding of Computer fundamentals.

  • Q1. 

    Amazing Strings Problem Statement

    Determine if the third string contains all the characters from both the first and second strings in any order. If so, return "YES"; otherwise, return "NO".

    Input:

    Line ...
  • Ans. Space Complexity: O(1)Explanation: Time Complexity: O(1)Explanation:
  • Answered Anonymously
  • Q2. 

    Longest Substring with At Most K Distinct Characters

    Given a string S of length N and an integer K, find the length of the longest substring that contains at most K distinct characters.

    Input:

    The first...
  • Ans. Brute Force
    • We will generate all the substrings using 2 nested for loops and we will have a ‘CHECK’ function which returns true if the number of distinct character in the substring is less than equal to K otherwise false.
    • We will have an ans variable initialize to 0. We will call the ‘CHECK’ function with every substring and if it returns true then
      • ANS = MAX(ANS , CURRENT_SUBSTRING.SIZE())
    • To implement the check function w...
  • Answered Anonymously
Round 2 - Telephonic Call 

(1 Question)

Round duration - 35 minutes
Round difficulty - Easy

It was a telephonic call that lasted for about half an hour.

  • Q1. 

    Longest Palindromic Substring Problem Statement

    You are provided with a string STR of length N. The goal is to identify the longest palindromic substring within this string. In cases where multiple palind...

  • Ans. Brute Force
    1. Generate substrings of the given string such that substring having greater length will be generated first.
    2. To do this, run a loop where iterator ‘LEN’ will go from N to 1, where N is the length of the given string.
    3. Run a nested loop and fix an iterator ‘j’ that will point at the starting index of the substring.
    4. Get the substring from ‘j’ to ‘j’ + ‘LEN’.
    5. If the substring is a palindrome, return the substring (as ...
  • Answered Anonymously
Round 3 - Video Call 

(1 Question)

Round duration - 40 minutes
Round difficulty - Medium

The round was a video call and I was asked to share my screen to avoid any cheating cases.

  • Q1. 

    Number of Islands Problem Statement

    You are given a non-empty grid that consists of only 0s and 1s. Your task is to determine the number of islands in this grid.

    An island is defined as a group of 1s (re...

  • Ans. DFS

    The problem boils down to find the number of connected components in the grid. 

     

    If we are on a land cell and explore every cell connected to it 8-directionally (and recursively cells connected to those cells, and so on), then the total number of cells with land explored will be one island.

     

    To ensure we don't count cells in the island more than once, we will mark 1(land) as 0 during the recursion call...

  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI completed Electrical & Electronics Engineering from Malaviya National Institute of Technology Jaipur. I applied for the job as SDE - Intern in BangaloreEligibility criteriaabove 7 cgpa, no backlogsAmazon interview preparation:Topics to prepare for the interview - Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic ProgrammingTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Do atleast 3 major web dev project
Tip 2 : Practice from interview bit

Application resume tips for other job seekers

Tip 1 : Keep it short, one or two page max.
Tip 2 : Attach competitive profiles url.

Final outcome of the interviewSelected

Skills evaluated in this interview

Amazon interview questions for designations

 Software Engineer Intern

 (13)

 Software Developer

 (186)

 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 was interviewed in Oct 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 135 minutes
Round difficulty - Medium

Round 1- The online round had 4 sections:
1) Code Debugging Section: 7 questions to be debugged in 20 minutes (C/C++/Java)
2) Coding questions: There were 2 coding questions
3) Workstyle and Behavioural assessment: 20 minutes 
4) Reasoning Ability: 35 minutes (easy-medium)(Aptitude and Logical Reasoning Questions)

  • Q1. 

    Character Formation Check

    Determine if the second string STR2 can be constructed using characters from the first string STR1. Both strings may include any characters.

    Input:

    The first line contains an i...
  • Ans. 

    1) I solved this problem in O(n) time and O(n) space.
    2) The idea is based on the fact that inorder traversal and preorder traversal of the tree.
    3) Tree X is a subtree of Y if both inorder and preorder traversals of X are substrings of inorder and preorder traversals of Y respectively.

  • Answered Anonymously
  • Q2. 

    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. 

    1) I solved this problem in O(n+m) time and O(1) space.
    2) I solved it using divide and conquer approach.
    3) I was lucky because i had already solved this problem before in leetcode.

  • Answered Anonymously
Round 2 - Video Call 

(2 Questions)

Round duration - 75 minutes
Round difficulty - Medium

It was a technical round. The interviewer mainly focused on Data Structures and Algorithms and asked me a few questions on operating systems.

  • Q1. 

    Counting Distinct Elements in Every K-Sized Window

    Given an array ARR of size N and an integer K, determine the number of distinct elements in every K-sized window of the array. A 'K' sized window is defi...

  • Ans. 

    1) First I did in a brute force approach O(n^2).
    2) Interviewer asked me to optimize my approach.
    2) Finally I optimized it to O(n) by using a HashMap.

  • Answered Anonymously
  • Q2. 

    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. 

    1) First solved it iteratively using a while loop.
    2) Then the interviewer asked me to solve it using recursion.
    3) I then modified my approach.
    4) We discussed all the edge cases and finally the interviewer got satisfied.

  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in HyderabadEligibility criteriaAbove 6.5 CGPAAmazon interview preparation:Topics to prepare for the interview - Data Structures, Standard Template Library(STL), Linked Lists, Binary Trees, Binary Seacrh Trees, Dynamic Programming, Heaps, Graphs, Operating Systems.Time required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Practice Atleast 300 Problems from LeetCode and GeeksforGeeks(GFG).
Tip 2 : Don't ignore subjects like Operating Systems, Computer Networks, and Database Management Systems.
Tip 3 : Be well prepared with your projects.

Application resume tips for other job seekers

Tip 1 : Mention all the projects in your resume.
Tip 2 : Make Sure that your resume is simple and also try to fit all the information in only one page.

Final outcome of the interviewSelected

Skills evaluated in this interview

Get interview-ready with Top Amazon Interview Questions

I was interviewed in Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 145 minutes
Round difficulty - Easy

The online assessment consisted of four components, a code debugging section (20 minutes), a coding test (70 minutes), a workstyles assessment (20 minutes) and a reasoning ability section (35 minutes). Code debugging questions were pretty simple and straightforward. The coding test consisted of 2 questions, first was similar to two Sum problem. Second question was similar to find the critical edges in a graph. The workstyles assessment section contained certain behavioural questions.
Reasoning ability section consisted of aptitude questions. This round was basically to check the problem solving skills of the candidate.

  • Q1. 

    Find All Pairs Adding Up to Target

    Given an array of integers ARR of length N and an integer Target, your task is to return all pairs of elements such that they add up to the Target.

    Input:

    The first line ...
  • Ans. 

    This problem was pretty standard. the solution is easily available online.

  • Answered Anonymously
  • Q2. 

    Bridges in a Graph Problem Statement

    In an undirected graph consisting of V vertices and E edges, your task is to identify all the bridges within the graph. A bridge is an edge which, when removed, result...

  • Ans. 

    I applied dfs in the above problem with slight modifications.

  • Answered Anonymously
Round 2 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

I was asked two coding questions. First question was related to binary tree and second question was to implement LRU cache.
I had to code both questions. The interviewer asked me the time and space complexity for both the questions.

  • Q1. 

    Circular Array Loop Problem Statement

    Given a circular array ARR of size N consisting of positive and negative integers, determine if there is a cycle present in the array. You can make movements based on...

  • Ans. 

    I solved this problem using DFS and BFS. 

  • Answered Anonymously
  • Q2. 

    LRU Cache Implementation

    Design and implement a Least Recently Used (LRU) cache data structure, which supports the following operations:

    • get(key) - Return the value of the key if it exists in the cach...
  • Ans. 

    I used a queue, doubly linked list and hashmap to solve this problem in constant time complexity.

  • Answered Anonymously
Round 3 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

I was asked two coding questions and some conceptual questions about priority heap data structure. I was able to code the optimized approach for the first question. But second question was a little tricky for me as I had never heard it before. But I explained my approach confidently. The interviewer also helped me and finally I was able to code it.

  • Q1. 

    Connect Ropes with Minimum Cost

    Given 'N' ropes, each having different lengths, your task is to connect these ropes into one single rope. The cost to connect two particular ropes is equal to the sum of th...

  • Ans. 

    Firstly I solved this problem using greedy approach by using min heap.
    After writing the code of this problem, I was asked follow up questions about heap data structure. One question was what if a binary tree was used to store the elements of the heap instead of an array.

  • Answered Anonymously
  • Q2. 

    Langford Pairing Problem Statement

    Given a positive integer N, you are required to generate a list of integers of size 2N such that it contains all the integers from 1 to N, both included, twice. These in...

  • Ans. 

    I started explaining my approach to the interviewer starting with brute force approach, then I told him that recursion can be used and finally coded it. It was not the optimized version but still I managed to give an approach that came to my mind.

  • Answered Anonymously

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAAmazon interview preparation:Topics to prepare for the interview - Data Structures, Recursion, Dynamic Programming, OOPS, PointersTime required to prepare for the interview - 2.5 monthsInterview preparation tips for other job seekers

Tip 1 : Be very clear with the basics of each topic.
Tip 2 : Be thorough with the projects mentioned in the resume.
 

Application resume tips for other job seekers

Tip 1 : Don't lie on your resume.
Tip 2 : The number of projects on the resume does not matter, what matters is that you must be thorough with your projects.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed in Oct 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 75 minutes
Round difficulty - Hard

This round was scheduled in the evening hours and all the participants were required to fill a form which was shared 15 minutes prior to the start of the online coding round. This form was filled out probably for the security reasons and to ensure that no one disinterested participant gives the test.

  • Q1. 

    Longest Palindromic Substring Problem Statement

    You are provided with a string STR of length N. The goal is to identify the longest palindromic substring within this string. In cases where multiple palind...

  • Ans. Brute Force
    1. Generate substrings of the given string such that substring having greater length will be generated first.
    2. To do this, run a loop where iterator ‘LEN’ will go from N to 1, where N is the length of the given string.
    3. Run a nested loop and fix an iterator ‘j’ that will point at the starting index of the substring.
    4. Get the substring from ‘j’ to ‘j’ + ‘LEN’.
    5. If the substring is a palindrome, return the substring (as ...
  • Answered Anonymously
  • Q2. 

    Remove All The Palindromes Problem Statement

    Given a string STR consisting only of lowercase letters, your task is to modify the string by replacing the minimum characters such that the string doesn’t con...

  • Ans. Greedy Approach

    The basic idea of this approach is to remove all the palindromes of length two and three. The idea is that if there exists a palindromic substring larger than length 3 then a palindrome of length 2 or 3 is present. 


    Here is the algorithm:

     

    1. Declare a variable ‘COUNT’ which stores the minimum number of replacements.
    2. Declaring another variable ‘CHANGECHAR’ which will store the ASCII value of capital ...

  • Answered Anonymously

Interview Preparation Tips

Eligibility criteriaAbove 6.5 cgpa, no current backlogsAmazon interview preparation:Topics to prepare for the interview - Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic ProgrammingTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Have a good command over dsa.
Tip 2 : Practice regularly on Geeksforgeeks and coding ninjas.
 

Application resume tips for other job seekers

Tip 1 : Mention link to your coding profiles
Tip 2 : Resume should not be more than one page

Final outcome of the interviewRejected

Skills evaluated in this interview

I was interviewed in Oct 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 120 Minutes
Round difficulty - Medium

Round started at 6pm in the evening and had 4 sections.

  • Q1. 

    Fire in the Cells Problem Statement

    Given a matrix 'MAT' of size 'N' * 'M', where 'N' is the number of rows and 'M' is the number of columns. A cell with value '0' represents it is initially on fire (at t...

  • Ans. Multisource BFS

    With each passing second fire expands and there are multiple cells at fire initially, (at time t = 0). So we will create an auxiliary matrix ‘TIME_OF_FIRE’ of size ‘N’ * ‘M’  to store the minimum time it will take for each cell to catch fire.

     

    Iterate through the given matrix ‘MAT’ [][] and set ‘TIME_OF_FIRE’ [][] for a cell ( ‘i’, ‘j’ ) to 0, if ‘MAT’ [‘i’][‘j’]  = 0, (source of fire) beca...

  • Answered Anonymously
  • Q2. 

    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. Brute Force
    • Run a loop from i = 0 to N - 1, to check each row.
      • Run a loop from j = 0 to N - 1, to check each element of the row.
        • If there is a match, return {i, j}.
    • If the element is not found in the entire matrix, return {-1, -1}
    Space Complexity: O(1)Explanation:

    O(1).

     

    Since only constant extra space is required.

    Time Complexity: O(n^2)Explanation:

    O(N ^ 2), where ‘N’ is the number of rows or columns in the matrix.

    &nb...

  • Answered Anonymously
Round 2 - Face to Face 

(2 Questions)

Round duration - 78 minutes
Round difficulty - Medium

The round started at 11 am and was conducted on amazon chime, They provided me a link to live sheet where I had to write all the code. Interviewer was very good at conducting a smooth interview and provided me small hints as I got stuck at some points.

  • Q1. 

    Unique Element In Sorted Array

    Nobita wants to impress Shizuka by correctly guessing her lucky number. Shizuka provides a sorted list where every number appears twice, except for her lucky number, which a...

  • Ans. Brute force

    The idea here is to use the fact that the array is sorted and the element of the array (‘arr[i]’) is unique if it doesn't have an adjacent element that has the same value as ‘arr[i]’. 

     

    Algorithm:

    • If the length of the array equal to 1 then return ‘arr[0]’.
    • Declare a variable ‘answer’ to store Shizuka’s lucky number.
    • Run a loop from i = 0 to the length of the array - 1.
    • If ‘arr[i]’ does not have an adjac...
  • Answered Anonymously
  • Q2. 

    Level Order Traversal Problem Statement

    Given a binary tree of integers, return the level order traversal of the binary tree.

    Input:

    The first line contains an integer 'T', representing the number of te...
  • Ans. Breadth First Search

    In the level order traversal, we will be using queue data structure which has the property FIRST IN FIRST OUT that’s why which nodes come first in current level the children of that node will also come first for the next level. So, we visit all the nodes one by one of the current level and push into the queue so that when we will be complete with the current level, then we can start exploring nodes ...

  • Answered Anonymously
Round 3 - Face to Face 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Medium

The round started at 4pm and was conducted on amazon chime, They provided me a link to live sheet where I had to write all the code.

  • Q1. 

    Find Duplicate in Array Problem Statement

    You are provided with an array of integers 'ARR' consisting of 'N' elements. Each integer is within the range [1, N-1], and the array contains exactly one duplica...

  • Ans. Using Sort

    First, we sort the array. Now, the rest of the algorithm becomes fairly simple. We just compare each element to its previous element. As we know there is exactly one repeated element, hence we can simply just return the element, which is equal to its previous element as soon as we find it.

    Space Complexity: O(1)Explanation:

    O(1) or O(N),

     

    We can sort the array either in place or by taking another array if ...

  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Chandigarh Group of Colleges - Landran. I applied for the job as SDE - Intern in HyderabadEligibility criteriaNo criteriaAmazon interview preparation:Topics to prepare for the interview - Data Structures, Dynamic Programming, Union Find, Segment Trees, OOPS, Graph Algorithms, Tree Algorithms, STLTime required to prepare for the interview - 8 monthsInterview preparation tips for other job seekers

Tip 1 : Complete all previously asked questions before sitting in the Interview, also try to find recently asked questions by the company in other colleges.
Tip 2 : Practice Consistently as it requires a lot of patience to develop good thinking abilities
Tip 3 : Give not more than a hour to a question and solve questions with diverse concepts.

Application resume tips for other job seekers

Tip 1 : Be concise, donot explain working of your projects there just give name and a line of description about projects.
Tip 2 : Only write what you know in the resume, false resume leads to unexpected questions.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed in Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 215 minutes
Round difficulty - Medium

* Debugging(C, C++, Java, Python) [Time given was quite enough.]
* Coding(Any programming language was allowed. 2 coding questions medium to difficult level 70 mins)
* Psychometric test based on Leadership principle — Don’t take it for granted. I would suggest to pay attention while 
answering to this as well.
* Aptitude and Logical reasoning (Good enough time was given.)

  • Q1. 

    Weird Number Pattern Problem Statement

    You are given an integer 'N'. Your task is to print a specific pattern for the given number of rows 'N'.

    Input:

    The first line contains a single integer ‘T’ repres...
  • Ans. Number Pattern 1

    The basic idea of this approach is to print the pattern row-wise. For each row, a pattern is observed: 1 is printed 1 time in the 1st row, 2 times in the 2nd row, 3 times in the 3rd row, and so on. So, a pattern is observed that the number of rows determines how many times 1 is printed in each row.


     Here is the algorithm:

     

    1. Run a loop for ‘ROW’ = 0 to ‘N’:
      • Run a loop for ‘COL’ = 0 to equal to ‘ROW...

  • Answered Anonymously
  • Q2. 

    Find All Pairs Adding Up to Target

    Given an array of integers ARR of length N and an integer Target, your task is to return all pairs of elements such that they add up to the Target.

    Input:

    The first line ...
  • Ans. Hashing Solution
    • We can store the frequency of every element in the array in a hashmap.
    • We will loop over every index i, and check the frequency of (Target - ARR[i]) is the hashmap:
      • If (Target - ARR[i]) is equal to ARR[i], we will check if frequency of ARR[i] . If it is greater than 1 then we will decrease the frequency of ARR[i] by 2 and add a pair (ARR[i] , ARR[i]) to our answer.
      • Else, if the frequency of ARR[i] and Targ...
  • Answered Anonymously
Round 2 - Video Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

(Time — 5.30 p.m.): I introduced myself. My interviewer told me that he would divide the interview into three phases.
Phase 1- Introduction and questions on life instances where I proved my efficiency. (barely 10 minutes, I answered well.)
Phase 2- Data Structures’ Understanding and questions related to it. (Hashing concept and complete conceptual details about it. Internal working, collisions, how to avoid them etc.) (15 minutes, He was satisfied with my answers. Don’t just answer. Explain !)

  • Q1. 

    Longest Unique Substring Problem Statement

    Given a string Str consisting of N lowercase Latin letters, you need to determine the longest substring without repeating characters.

    A substring is defined as ...

  • Ans. Brute-Force

    In this approach, we will consider every substring and check if it can be the longest unique substring. Let’s say we have a variable ‘ans’ that stores the longest unique substring.
     

    For every substring, we will make a count array of size 26 that will store the count of each character in the substring. If every character in the substring has a count less than 2, we check if it is the longest unique substr...

  • Answered Anonymously
Round 3 - Video Call 

(2 Questions)

Round duration - 70 minutes
Round difficulty - Hard

(Time — 7.00 p.m.): I introduced myself. The interviewer directly jumped onto the questions. He asked me two questions. The first question he asked me was: Coding Question

  • Q1. 

    Longest Substring with At Most K Distinct Characters

    Given a string S of length N and an integer K, find the length of the longest substring that contains at most K distinct characters.

    Input:

    The first...
  • Ans. Brute Force
    • We will generate all the substrings using 2 nested for loops and we will have a ‘CHECK’ function which returns true if the number of distinct character in the substring is less than equal to K otherwise false.
    • We will have an ans variable initialize to 0. We will call the ‘CHECK’ function with every substring and if it returns true then
      • ANS = MAX(ANS , CURRENT_SUBSTRING.SIZE())
    • To implement the check function w...
  • Answered Anonymously
  • Q2. 

    Count Set Bits Problem Statement

    Given a positive integer N, compute the total number of '1's in the binary representation of all numbers from 1 to N. Return this count modulo 1e9+7 because the result can...

  • Ans. Brute Force

    The key idea is to count the number of set bits in each number from 1 to n and return the sum of all set bits.

     

    The algorithm will be -

     

    • For each i from 1 to N -
      • We find the number of set bits for each i.
      • This can be done using a built-in function (for eg builtin_popcount in c++) or by simply using a loop and left shifting the number and finding if the last place is set or not.
    • Finally we store the coun...
  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in HyderabadEligibility criteria8 AboveAmazon interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, OOPS, Graphs, Trees, Core SubjectsTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Focus on medium and hard questions. Solving a lot of easy questions doesn't help.
Tip 2 : Start with the basics if you have lost touch with competitive coding. Don't directly jump to interview questions.
Tip 3 : Create a timetable and set goals. Keep aside 3-4 hours for studying. Consistency is the key.

Application resume tips for other job seekers

Tip 1 : Keep it clean and simple.
Tip 2 : You should have good projects to showcase

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Medium

The first Round was held on Hackerrank and the questions were of medium difficulty based on Data Structures and Algorithms.
The time of test was 1:00 PM and it was of 45 minutes with 2 coding questions to be solved.

  • Q1. 

    Merge Overlapping Intervals Problem Statement

    Given a specified number of intervals, where each interval is represented by two integers denoting its boundaries, the task is to merge all overlapping interv...

  • Q2. 

    Josephus Problem Statement

    Consider 'N' individuals standing in a circle, numbered consecutively from 1 to N, in a clockwise direction. Initially, the person at position 1 starts counting and will skip K-...

Round 2 - Coding Test 

(2 Questions)

Round duration - 75 minutes
Round difficulty - Medium

A google Doc was shared with us and we were supposed to write code there. 
Use of IDEs was not allowed so we had to write correct code on Google Docs which was later checked by them through online IDEs.
The Interviewer were friendly and observative and helped us through code if we made some silly error.

  • Q1. 

    Largest Rectangle in Histogram Problem Statement

    You are given an array/list HEIGHTS of length N, where each element represents the height of a histogram bar. The width of each bar is considered to be 1.

    ...
  • Q2. 

    Boundary Traversal of a Binary Tree

    Given a binary tree of integers, your task is to return the boundary nodes of the tree in Anti-Clockwise direction starting from the root node.

    Input:

    The first line ...
Round 3 - Face to Face 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

The face to face round was held on Google Meet where initially Interviewer asked a DS/Algo problem and then Later Manager Joined and asked about our resume projects in detail.
The time was 10:00 AM

  • Q1. 

    Maximum Sum Rectangle Problem

    Given an M x N matrix of integers ARR, your task is to identify the rectangle within the matrix that has the greatest sum of its elements.

    Input:

    The first line of input co...
  • Q2. 

    Rotated Array Minimum Finder

    You are provided with a sorted array that has undergone 'K' rotations (the exact value of 'K' is unknown). A rotation involves shifting each element of the array to the right,...

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in BangaloreEligibility criteriaAbove 6 CGPAAmazon interview preparation:Topics to prepare for the interview - Dynamic Programming, Greedy Techniques, Data Structures, OOPs, DBMS, Graph TheoryTime required to prepare for the interview - 3 MonthsInterview preparation tips for other job seekers

Tip 1 : Prepare OS,DBMS,OOPs too
Tip 2 : Mention atleast one project or past work experience in your resume
Tip 3 : Try maintaining 8+ CGPA as sometimes shortlist is done based on CGPA
Tip 4 : Try past interview questions from Leetcode,Interviewbit.

Application resume tips for other job seekers

Tip 1 : Try to Keep Resume 1 Pager 
Tip 2 : Have atleast one project or past work experience mentioned
Tip 3 : Don't put false things on Resume as questions are asked in detail from Resume

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. maximum profit by buying and selling a stock at most tw...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 40 interviews

3 Interview rounds

  • Coding Test Round
  • Video Call Round - 1
  • Video Call Round - 2
View more
Amazon Software Developer Intern Salary
based on 38 salaries
₹5.2 L/yr - ₹19.4 L/yr
86% 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.3 L/yr - ₹6.5 L/yr

Associate
2.8k salaries
unlock blur

₹0.8 L/yr - ₹6.9 L/yr

Senior Associate
2.5k salaries
unlock blur

₹2 L/yr - ₹10.1 L/yr

Program Manager
2.3k salaries
unlock blur

₹9 L/yr - ₹36 L/yr

Explore more salaries
Compare Amazon with

Flipkart

4.0
Compare

TCS

3.7
Compare

Google

4.4
Compare

Netflix

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