i
Amazon
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I was interviewed in Dec 2021.
Round duration - 90 minutes
Round difficulty - Easy
It consisted of two sections - first section had two coding questions and second section had to submit explanations for your solutions. One of the question was a simple spiral traversal of a two-dimensional matrix. Other was a straightforward binary search question. Level of this round was very easy.
You are provided with a 2-D array called MATRIX
with dimensions N x M containing integers. Your task is to return the matrix's elements in a spiral order.
The task is to return the elements of a 2-D array in a spiral order.
Traverse the matrix in a spiral order by moving right, down, left, and up.
Keep track of the boundaries of the matrix as you move along.
Handle cases where the matrix is not a square (N != M).
As the Government ramps up vaccination drives to combat the second wave of Covid-19, you are tasked with helping plan an effective vaccination schedule. Your goal is...
Given constraints and rules, find maximum vaccines administered on a specific day during a vaccination drive.
Iterate through each test case and calculate the maximum number of vaccines distributed on the specified day.
Distribute vaccines evenly across days while maximizing the number on the specified day.
Ensure that the sum of vaccines distributed does not exceed the maximum allowed.
Consider edge cases like when the nu...
Round duration - 60 Minutes
Round difficulty - Medium
This was the first F2F interview. He started by asking me about the work I did in my previous company. He seemed genuinely interested in knowing the project I was working on. Also asked me some technical questions related to that project. Asked a couple of questions related to the skills I had mentioned on my resume like AWS lambda etc. I was able to answer all question correctly except one. Then I was given one coding task to solve. I was required to start coding instantly and explain what I was doing simultaneously. Other than the coding task, interviewer asked me a couple of behavioral questions
Static memory allocation is done at compile time, while dynamic memory allocation is done at runtime.
Static memory allocation is fixed in size and allocated on the stack, while dynamic memory allocation can change in size and is allocated on the heap.
Static memory allocation is determined at compile time, while dynamic memory allocation is determined at runtime.
Static memory allocation is less flexible but faster, whil...
Round duration - 60 Minutes
Round difficulty - Easy
Asked me two coding questions.
Given an integer K, your task is to generate all binary strings of length K such that there are no consecutive 1s in the string.
This means the bin...
Generate all binary strings of length K without consecutive 1s in lexicographically increasing order.
Use backtracking to generate all possible binary strings without consecutive 1s.
Start with an empty string and recursively add '0' or '1' based on the condition of no consecutive 1s.
Keep track of the current string and its length to check for consecutive 1s.
Return the generated binary strings in lexicographically increa
Round duration - 60 Minutes
Round difficulty - Medium
This was HM round. He asked me some behavioral questions which seemed like a formality. He asked me some questions on OOPS and OS. Then gave me a coding question. Wanted me to explain the approach and run it. I asked him a couple of question at the end of interview related to the work and tech stack used by the team.
In this game, players Ninja Misha and Ninja Andrew each choose an integer within the range of 1 to 'N'. After their choices, a random integer 'C' is drawn...
Find the optimal number for Andrew to choose to maximize his winning probability in a game against Misha.
Andrew should choose the number equidistant from Misha's number and the random integer C to maximize his winning probability.
The optimal number for Andrew to choose is the average of Misha's number and C, rounded up if the average is not an integer.
If the average of Misha's number and C is an integer, Andrew should ...
Round duration - 60 Minutes
Round difficulty - Medium
He asked me some questions about my role in previous organization. Asked me the architecture of the systems I have worked on. Then asked me a coding question.
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...
Given a sorted N*N matrix, find the position of a target integer X.
Use binary search on each row to find the potential row where the target might be located.
Then use binary search on that row to find the column where the target is located.
Return the position if found, otherwise return -1 -1.
Tip 1 : Consistently practice DSA questions.
Tip 2 : Regularly participating in contests held on competitive programming platforms(codeforces, codechef etc) will definitely help in developing an aptitude for problem solving and also improves speed to solve such questions
Tip 3 : Revise basic questions of OOPS and OS like polymorphism, race condition, semaphores, deadlock etc.
Tip 1 : Only mention your most important skills and achievements to keep it short and precise.
Tip 2 : Have a sound knowledge of all projects mentioned.
I was interviewed in Aug 2021.
Round duration - 90 Minutes
Round difficulty - Easy
Online Coding Round
Find the length of the shortest path in a binary maze given in the form of a rectangular matrix of size M*N, where each element is 0 or 1. Calculate the shortest path from a...
Step 1 -> Start a BFS from the given source point
Step 2 -> Maintain a counter variable which holds the value of the level of BFS which is being investigated
Step 3-> When you reach the target cell point return the value of counter variable which will denote the shortest distance.
Step 4-> If target is not reached return -1 in the end after the BFS is completed
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...
Step 1 -> Declare a Min Heap and push all the given rope lengths in it.
Step 2 -> Execute till the size of the Min Heap is greater than 2.
Step 3 -> At each step take the top most two entries from the Min Heap and add them to your cost.
Step 4 -> Also add the two min entries taken at some point back to Min heap as two ropes of size x and y when joined together creates a new rope of size x+y which can be used f...
Round duration - 60 minutes
Round difficulty - Medium
Problem Solving and Data Structures round.
In this task, you need to verify if two provided strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form t...
Step 1-> Run two nested for loops to check for each pair (arr[i],arr[j]) are anagrams of each other or not.
Step 2-> For checking anagrams I used hashing where I counted frequency of each character if all the frequencies were same in both the string return true else return false that they are not anagrams.
Step 3 -> Grouped the pairs which matched that they are anagrams.
Extended Problem Solution:
When all the cha...
Given an integer array ARR
of size N
with all distinct values, determine the total number of 'Inversions' that exist.
An inversion is a pair of indices (i, j)
such t...
First I gave a Brute force solution using two nested Loops and trying out all pairs, which Interviewer asked me to optimize.
I asked about the constraints of elements occurring in the array , it was given that each arr[i]<=10^5
Step 1 -> Declare a Binary Indexed Tree of size equal to maximum element occurring in array
Step 2- > Traverse array from end till start (N-1 index till 0) and at each step if ...
Round duration - 60 Minutes
Round difficulty - Medium
DSA and Problem Solving
You are given two strings S
and T
. Your task is to determine the smallest contiguous substring W
of S
, such that T
is a subsequence of W
.
A subsequence is a s...
Step 1 -> Gave a Brute force solution by trying out all substrings and building a check function to verify if current window has all characters of other string or not.
Step 2-> I was told to optimize it
Step 3-> Tried using hashing + sliding window
Step 4 -> was not able to code it up properly.
Step 5 -> Tried doing it using Binary search where start=Length of String B and end= String length of A and tried e...
Round duration - 75 Minutes
Round difficulty - Easy
Deep discussions about projects about the tech stack used and why it is used . In depth subject questions .
Tip 1 : Practice all previous amazon interview questions
Tip 2 : Study Well about your projects about databases used and the reason they are used.
Tip 1 : Well defined projects in resume
Tip 2 : Problem solving/Open source skills are a plus
I applied via campus placement at Young Men Christian Association (YMCA) and was interviewed before Sep 2022. There were 4 interview rounds.
Difficult level medium
LRU cache can be implemented using a hashmap to store key-value pairs and a doubly linked list to keep track of the most recently used items.
Use a hashmap to store key-value pairs for quick access to values
Use a doubly linked list to keep track of the order of items based on their usage
When a new item is accessed, move it to the front of the linked list and update the hashmap accordingly
When the cache is full, remove t...
What people are saying about Amazon
I applied via LinkedIn and was interviewed in Jun 2022. There were 2 interview rounds.
Questions like leetcode, a lot of double linked lists
Amazon interview questions for designations
I was interviewed in Jul 2021.
Round duration - 60 minutes
Round difficulty - Easy
There was 2 coding questions
Based on ds and algorithms
Given an integer array ARR
of size N
, your task is to find the total number of inversions that exist in the array.
An inversion is defined for a pair of integers in the...
Given an unsorted array arr
of distinct integers and an integer k
, your task is to find the k-th
smallest element in the array.
The first line of input c...
Round duration - 45 minutes
Round difficulty - Easy
It was easy and the interviewer is very friendly
Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the...
Given 'N' students standing in a row with specific heights, your task is to find the length of the longest strictly increasing subsequence of their heights...
You have a sequence of consecutive nonnegative integers. By appending all integers end-to-end, you formed a string S
without any separators. During this pro...
Round duration - 20 minutes
Round difficulty - Medium
Asked general questions based on family
Spoke about ctc and relocation
Tip 1 : Even if you are stuck in the problem, just give a try. The interviewer will help you definitely for sure.
Tip 2 : Prepare Data Structures and Algorithms well. They mostly check our Problem Solving ability to find the solutions for the real world problems.
Tip 3 : Be enough confident, don't be nervous. Maintain atleast 2 projects in your resume.
Tip 1 : Mention atleast 2 projects.
Tip 2 : Mention your skills in which you are perfect.
Get interview-ready with Top Amazon Interview Questions
I applied via Campus Placement and was interviewed before Mar 2022. There were 3 interview rounds.
There were two parts to the online assessment round. The first part is the coding round(two questions were asked). And 2nd part is the work simulation round. Click on the below link to know about the work simulation round -----.
Coding questions were easy and medium-level difficulty.
Equilibrium index of an array
Don’t remember the exact question but it was a medium-level difficulty.
The Interviews were conducted on the Amazon Chime platform. Coding questions were asked to code on Amazon’s LiveCode platform. Each interview round was between 60-90 minutes.
I applied via campus placement at Vellore Institute of Technology (VIT) and was interviewed in Mar 2022. There were 2 interview rounds.
2 coding questions on hackerrank. One was dp and one was simple array question
I was interviewed in May 2021.
Round duration - 120 Minutes
Round difficulty - Easy
The round started from 11AM. The test can be given from home from a laptop.
Your house is located at the origin (0,0) of a 2-D plane. There are N
neighbors living at different points on the plane. Your goal is to visit exactly K
neighb...
Round duration - 60 minutes
Round difficulty - Medium
The interview started around 10 AM and it was on the video call.
You are given a binary tree consisting of distinct integers and two nodes, X
and Y
. Your task is to find and return the Lowest Common Ancestor (LCA) of these two nodes...
Given a matrix of characters with dimensions N
* M
, you need to process 'Q'
queries. For each query, you are given a word 'W'
and you must determine if you can form word 'W'
...
Tip 1 : Read resume before interview
Tip 2 : Be well versed with basic system design
Tip 3 : Practice mock interviews
Tip 1 : Know everything written in you resume
Tip 2 : Mention important things in bold
I applied via Approached by Company and was interviewed in Mar 2022. There was 1 interview round.
I applied via Referral and was interviewed in May 2021. There were 3 interview rounds.
Shortest path in an unweighted graph
Use Breadth First Search (BFS) algorithm to find shortest path
Start from the source node and traverse the graph level by level
Keep track of visited nodes to avoid loops
Stop when the destination node is found
Return the path from source to destination using parent pointers
Some of the top questions asked at the Amazon Software Developer interview -
The duration of Amazon Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 117 interviews
5 Interview rounds
based on 262 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