i
Amazon
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I was interviewed in Nov 2020.
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.
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
.
The first line ...
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 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.
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...
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.
4 2...
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.
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...
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...
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
Tip 1 : Having good projects with proper knowledge about them
Tip 2 : Relevant skill set as demanded by the company for the job description.
I was interviewed in Nov 2020.
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.
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.
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 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.
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...
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'...
Given a string 'STR' composed of lowercase English letters, identify the character that repeats first in terms of its initial occurrence.
STR =...
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.
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...
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.
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.
I was interviewed in Nov 2020.
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.
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...
Given two arbitrary binary trees, your task is to determine whether these two trees are mirrors of each other.
Two trees are considered mirror of each other if...
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:
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.
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...
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
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.
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...
Tip 1 : Do atleast 3 major web dev project
Tip 2 : Practice from interview bit
Tip 1 : Resume should not be more than 1 page
Tip 2 : Be precise
What people are saying about Amazon
I was interviewed in Oct 2020.
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.
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".
Line ...
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.
The first...
Round duration - 35 minutes
Round difficulty - Easy
It was a telephonic call that lasted for about half an hour.
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...
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.
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...
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...
Tip 1 : Do atleast 3 major web dev project
Tip 2 : Practice from interview bit
Tip 1 : Keep it short, one or two page max.
Tip 2 : Attach competitive profiles url.
Amazon interview questions for designations
I was interviewed in Oct 2020.
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)
Determine if the second string STR2
can be constructed using characters from the first string STR1
. Both strings may include any characters.
The first line contains an i...
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.
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...
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.
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.
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...
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.
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.
...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.
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.
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.
Get interview-ready with Top Amazon Interview Questions
I was interviewed in Sep 2020.
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.
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
.
The first line ...
This problem was pretty standard. the solution is easily available online.
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...
I applied dfs in the above problem with slight modifications.
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.
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...
I solved this problem using DFS and BFS.
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...I used a queue, doubly linked list and hashmap to solve this problem in constant time complexity.
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.
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...
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.
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...
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.
Tip 1 : Be very clear with the basics of each topic.
Tip 2 : Be thorough with the projects mentioned in the resume.
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.
I was interviewed in Oct 2020.
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.
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...
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...
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:
Tip 1 : Have a good command over dsa.
Tip 2 : Practice regularly on Geeksforgeeks and coding ninjas.
Tip 1 : Mention link to your coding profiles
Tip 2 : Resume should not be more than one page
I was interviewed in Oct 2020.
Round duration - 120 Minutes
Round difficulty - Medium
Round started at 6pm in the evening and had 4 sections.
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...
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...
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...
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...
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.
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...
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:
Given a binary tree of integers, return the level order traversal of the binary tree.
The first line contains an integer 'T', representing the number of te...
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 ...
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.
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...
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 ...
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.
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.
I was interviewed in Sep 2020.
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.)
You are given an integer 'N'. Your task is to print a specific pattern for the given number of rows 'N'.
The first line contains a single integer ‘T’ repres...
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:
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
.
The first line ...
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 !)
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 ...
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...
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
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.
The first...
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...
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 -
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.
Tip 1 : Keep it clean and simple.
Tip 2 : You should have good projects to showcase
I was interviewed before Sep 2020.
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.
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...
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 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.
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.
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.
The first line ...
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
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.
The first line of input co...
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,...
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.
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
Some of the top questions asked at the Amazon Software Developer Intern interview -
The duration of Amazon Software Developer Intern interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 40 interviews
3 Interview rounds
based on 91 reviews
Rating in categories
Customer Service Associate
4.2k
salaries
| ₹0.6 L/yr - ₹6.8 L/yr |
Transaction Risk Investigator
3.1k
salaries
| ₹2.3 L/yr - ₹6.5 L/yr |
Associate
2.8k
salaries
| ₹0.8 L/yr - ₹6.9 L/yr |
Senior Associate
2.5k
salaries
| ₹2 L/yr - ₹10.1 L/yr |
Program Manager
2.3k
salaries
| ₹9 L/yr - ₹36 L/yr |
Flipkart
TCS
Netflix