i
Amazon
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Clear (1)
I applied via Campus Placement and was interviewed before Jun 2023. There were 3 interview rounds.
2 Questions based on Data Structures
Find the median of two sorted arrays
Merge the two arrays into one sorted array and find the median
Use binary search to find the median efficiently
Handle edge cases like arrays of different lengths
The minimum cost of ropes can be calculated using a greedy algorithm approach.
Calculate the cost of joining two smallest ropes at each step
Add the cost to the total cost and update the list of ropes
Repeat until only one rope is left
Trapping rain water problem involves calculating the amount of water that can be trapped between buildings given their heights.
Calculate the maximum height on the left and right of each building
Subtract the building height from the minimum of the two maximum heights to get the water trapped at that building
Sum up the water trapped at each building to get the total trapped water
I was interviewed in May 2022.
Round duration - 90 minutes
Round difficulty - Easy
90 minutes round Seven debugging questions, two coding questions, Behavioural questions
Given a non-empty binary tree where each node has a non-negative integer value, determine the maximum possible sum of the path between any two leaves of the given tree.
...Find the maximum path sum between two leaf nodes in a binary tree.
Traverse the tree to find the maximum path sum between two leaf nodes
Consider both cases where the path passes through the root and where it doesn't
Use recursion to calculate the sum of paths from each leaf node to the root
Given a binary tree with 'N' nodes and a specific node 'X', your goal is to print the path from the root node to the specified node 'X'.
A binary tree is a ...
Given a binary tree and a target node, find the path from the root to the target node.
Traverse the binary tree from the root to the target node using depth-first search (DFS).
Store the path from the root to the target node while traversing the tree.
Print the stored path as the output for each test case.
Ensure uniqueness of node values and that the target node exists in the tree.
Round duration - 60 minutes
Round difficulty - Medium
The interviewer directly stated with coding question. He asked me 2 coding questions and he was aspecting the optimal working code of both.
Given a binary tree of integers, your task is to return the boundary nodes of this binary tree in an anti-clockwise direction starting from the root node.
Return 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 repeating nodes in the output
Example: For input 1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1, output should be 1 2 4 7 6 3
Given a binary array 'ARR' of size 'N', your task is to determine the maximum length of a sequence consisting solely of 1’s that can be obtained by converting at...
The task is to find the maximum length of a sequence of 1's by converting at most K zeroes into ones in a binary array.
Iterate through the array and keep track of the current window of 1's and zeroes.
Use a sliding window approach to find the maximum length of consecutive 1's by flipping at most K zeroes.
Update the window based on the number of zeroes flipped and keep track of the maximum length found so far.
Return the
Round duration - 60 minutes
Round difficulty - Medium
The interviewer started with tell me about your self. Then he started asking about my previous intenship projects and some Common Hr questions like why you want to join amazon. This went for almost 30 minutes then he asked me to solve a coding question similar to Rotten Orange question.
You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:
Find the minimum time required to rot all fresh oranges in a grid.
Use Breadth First Search (BFS) to simulate the rotting process.
Track the time taken to rot all fresh oranges.
Return -1 if not all fresh oranges can be rotten.
Handle edge cases like empty grid or no fresh oranges.
Example: For the given grid, it takes 4 seconds to rot all fresh oranges.
Tip 1 : Practice as many questions as u can
Tip 2 : Focus on DSA
Tip 1 : Add some good projects
Tip 2 : Don't add copied Projects
I was interviewed in May 2022.
Round duration - 90 Minutes
Round difficulty - Medium
Timing-90 Duration Of Assessment
you need to give the test within 5 days of getting the test mail.
Test is conducted virtually through Hackerrank platform and after that it redirects to Amazon page where we need to answer questions related to Amazon’s Leadership Principles and workstyles.
Given the dimensions of an M x N matrix, determine the total number of unique paths from the top-left corner to the bottom-right corner of the matrix.
Allowed moves are onl...
The problem involves finding the total number of unique paths from the top-left corner to the bottom-right corner of an M x N 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 in the matrix.
Initialize the first row and first column with 1 as there is only one way to reach each cell in those rows and columns.
F...
Given a binary tree, your task is to print the left view of the tree. The left view of a binary tree contains the nodes visible when the tree is viewed from the left side.
Print the left view of a binary tree, containing nodes visible from the left side.
Traverse the tree level by level and print the first node of each level.
Use a queue to keep track of nodes at each level.
Handle null nodes represented by -1 in the input.
Round duration - 60 Minutes
Round difficulty - Hard
We need to solve 1 or 2(based on interviewer) coding question within 1 hour in which we need to explain our approach before writing the code and we need to give optimal solution of the approach.
Bob and his wife are in the famous 'Arcade' mall in the city of Berland. This mall has a unique way of moving between shops using trampolines. Each shop is laid out in a st...
Find the minimum number of jumps Bob needs to make from shop 0 to reach the final shop, or return -1 if impossible.
Use Breadth First Search (BFS) to find the minimum number of jumps needed.
Keep track of the maximum reachable index at each step.
If the maximum reachable index is less than the current index, return -1 as it's impossible to reach the last shop.
Tip 1 : Do lots of competitive programming
Tip 2 : Create a nice portfolio on any coding platform like LeetCode or CodeChef because it will attract recruiter's.
Tip 3 : Pick only one Programming language for coding because it will help you to learn syntax by heart.
Tip 1 : Try to make resume of single column because it easily bypass the parser/scanner
Tip 2 : Do not put false things and over skills in your resume.
Tip 3 : Either you are fresher or experienced still don't make resume more than 2 pages.
What people are saying about Amazon
I applied via Company Website and was interviewed before Jun 2022. There were 4 interview rounds.
2 hacker rank tests and one round of behavior
Design a chess game with all the necessary components and rules.
Create a board with 64 squares (8x8 grid)
Assign pieces to each player (16 pieces per player)
Implement movement rules for each piece (e.g. pawn moves forward, bishop moves diagonally)
Include special moves like castling and en passant
Implement win conditions (checkmate, stalemate)
Consider implementing features like undo move, AI opponent
Amazon interview questions for designations
I applied via Approached by Company and was interviewed before May 2023. There were 4 interview rounds.
An online coding test link was given, had to solve the problem within required time.
Again there was coding round
Get interview-ready with Top Amazon Interview Questions
I applied via Referral and was interviewed before Sep 2022. There were 2 interview rounds.
The Rotten Oranges problem involves determining the minimum time required to rot all oranges in a grid.
Create a queue to store the coordinates of rotten oranges
Iterate through the grid and add all rotten oranges to the queue
Use BFS to rot adjacent fresh oranges and update their status
Continue the process until no fresh oranges are left or all oranges are rotten
I applied via Company Website and was interviewed in Jun 2022. There were 2 interview rounds.
Test on HackerEarth, problems related to Dynamic Programming
I applied via Campus Placement and was interviewed in Jun 2022. There were 2 interview rounds.
Was conducted on HackerRank platform with medium difficulty.
Count the number of inversions in an array.
An inversion occurs when a larger number appears before a smaller number in an array.
Use a divide and conquer approach to solve the problem.
Merge sort can be used to count the number of inversions in an array.
Next Greater Element Using Stacks - find the next greater element for each element in an array using stack data structure.
Create an empty stack and push the first element of the array onto it.
Iterate through the array from the second element.
While the stack is not empty and the current element is greater than the top element of the stack, pop the stack and set the popped element's next greater element as the current el...
I applied via LinkedIn and was interviewed before Apr 2022. There were 3 interview rounds.
3 coding problems, medium to high level
I was interviewed in Feb 2022.
Round duration - 90 minutes
Round difficulty - Medium
You are given the arrival and departure times of N trains at a railway station for a particular day. Your task is to determine the minimum number of pl...
Determine the minimum number of platforms needed at a railway station based on arrival and departure times of trains.
Sort the arrival and departure times in ascending order.
Use two pointers to keep track of overlapping schedules.
Increment the platform count when a new train arrives before the previous one departs.
Return the maximum platform count needed.
Round duration - 45 Minutes
Round difficulty - Medium
You are tasked with driving a cab that moves in a straight line, only forward, and initially has 'C' empty seats available for passengers.
Given 'N' trips, each defined by t...
The problem involves determining if a cab with a certain capacity can successfully pick up and drop off passengers at specified points for multiple trips.
Create a function that takes in the car's capacity, number of trips, and trip details as input
Iterate through each trip and check if the total number of passengers picked up and dropped off is within the car's capacity
Return 'True' if all trips can be successfully com
Round duration - 45 Minutes
Round difficulty - Medium
You are given an array 'PRICES' of 'N' integers, where 'PRICES[i]' represents the price of a certain stock on the i-th day. An integer 'K' is also provide...
Find the maximum profit achievable with at most K transactions by buying and selling stocks.
Iterate through the array and keep track of the minimum price to buy and maximum profit for each transaction.
Use dynamic programming to store the maximum profit at each day with each possible number of transactions.
Consider edge cases like when K is 0 or when the array is empty.
Example: For input N = 6, PRICES = [3, 2, 6, 5, 0,
Round duration - 45 minutes
Round difficulty - Easy
This round is to check leadership principals, and to get to know about some projects, and some basic CS fundamentals.
Tip 1 : Daily Practice DSA for atleast 2 hours
Tip 2 : Keep Fundamental concepts strong and clear
Tip 3 : Do mock Interviews to get comfortable on it.
Tip 1 : Try to mentions self made good projects along with the coding platform handles, where you have done pretty well.
Tip 2 : Mentions some are the achievements, like good coding contest rank, hackathon participations, open source contributions.
Tip3 : Don't fake on the projects, it's a red flag.
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 119 interviews
5 Interview rounds
based on 263 reviews
Rating in categories
Customer Service Associate
4.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Transaction Risk Investigator
3.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate
2.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate
2.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Program Manager
2.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
Flipkart
TCS
Netflix