i
Amazon
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Clear (1)
I was interviewed in Apr 2021.
Round duration - 60 minutes
Round difficulty - Hard
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 ...
Given an array of integers and a target, find all pairs of elements that add up to the target.
Iterate through the array and for each element, check if the target minus the element exists in a hash set.
If it exists, add the pair to the result. If not, add the element to the hash set.
Handle cases where the same element is used twice in a pair.
Return (-1, -1) if no pair is found.
Round duration - 60 minutes
Round difficulty - Medium
You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:
Find minimum time to rot all fresh oranges in a grid if adjacent to rotten oranges.
Use Breadth First Search (BFS) to simulate the rotting process of oranges.
Keep track of the time taken to rot all fresh oranges.
Return -1 if there are fresh oranges left after simulation.
Handle edge cases like empty grid or no fresh oranges present.
Round duration - 60 minutes
Round difficulty - Easy
Given a sorted array of 'N' integers, your task is to generate the power set for this array. Each subset of this power set should be individually sorted.
A power set of a set 'ARR' i...
Generate power set of sorted array of integers with individually sorted subsets.
Use recursion to generate all possible subsets by including or excluding each element.
Sort each subset before adding it to the power set.
Handle base case when all elements have been considered.
Time complexity can be exponential due to 2^N subsets being generated.
Tip 1 : Be consistent
Tip 2 : Be dedicated
Tip 3 : Concepts should be crystal clear.
Tip 1 : Make projects
Tip 2 : Write only what you know.
I applied via Amazon and was interviewed before Sep 2022. There were 3 interview rounds.
2 Leetcode Medium at best, probably 1 easy 1 med.
I was interviewed in Jan 2021.
Round duration - 60 minutes
Round difficulty - Hard
This round was carried out on Amcat. It was very user friendly platform and easily understandable. Countdown Timer was located at the top right corner that helped me to keep a check on the remaining time and I planned my answers and code accordingly.
Given a number 'N', the task is to determine the position of the rightmost set bit in its binary representation.
If N = 10, which has binary representatio...
Find the position of the rightmost set bit in a given number's binary representation.
Convert the number to binary representation.
Find the position of the rightmost set bit by counting from the right.
Return the position as output.
The Ninja has been given a challenge by his master to reach the last stone. These stones are represented as an array of numbers. The Ninja can jump using either odd-numbered or even-numb...
Find the number of starting indices from which a Ninja can reach the last stone by following specific jump rules.
Iterate through the array and keep track of the indices that satisfy the jump rules.
Use dynamic programming to efficiently determine the number of starting indices.
Consider odd and even jumps separately to handle the different conditions.
Example: For the input [10, 13, 12, 14, 15], the Ninja can start at ind
Round duration - 50 minutes
Round difficulty - Hard
This round was held on Amazon chime which is Amazon's video conferencing app.
You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or tw...
The problem involves finding the number of distinct ways to climb N stairs by taking 1 or 2 steps at a time.
Use dynamic programming to solve the problem efficiently.
The number of ways to reach the Nth stair is the sum of the number of ways to reach the (N-1)th stair and the (N-2)th stair.
Handle base cases for N=0 and N=1 separately.
Apply modulo operation to avoid overflow while calculating the result.
Consider using mem...
Round duration - 40 minutes
Round difficulty - Easy
It was fun talking with the interviewer. we both enjoyed each other company and had discussions on several things.
Tip 1 : solve all the must do questions available at GeeksforGeeks
Tip 2 : having a team project will give you an edge over others
Tip 3 : practice regularly on Codechef and Codeforces and build up good profiles
Tip 4: if you are a fresher, then placement preparation course from coding ninjas can really help you in short span of time
Tip 1 : technical skills mentioned in the resume should be on your tips
Tip 2 : having a team project will give you an edge over others
Tip 3 : put the links of your competitive profiles in your resume, then your stats speak loud about your skill set
What people are saying about Amazon
I was interviewed in Jan 2021.
Round duration - 70 minutes
Round difficulty - Medium
Given a singly linked list of integers, determine if the linked list is a palindrome.
A linked list is considered a palindrome if it reads the same forwar...
Check if a given singly linked list of integers is a palindrome or not.
Traverse the linked list to find the middle element using slow and fast pointers.
Reverse the second half of the linked list.
Compare the first half with the reversed second half to determine if it's a palindrome.
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.
...Merge two sorted linked lists into a single sorted linked list without using additional space.
Create a dummy node to start the merged list
Compare the values of the two linked lists and append the smaller value to the merged list
Move the pointer of the merged list and the respective linked list to the next node
Continue this process until both linked lists are exhausted
Return the head of the merged list
Round duration - 60 minutes
Round difficulty - Medium
You are given a string S
. Your task is to partition S
such that every substring of the partition is a palindrome. Your objective is to return all possible palindr...
Given a string, partition it into palindromes and return all possible configurations.
Use backtracking to generate all possible palindrome partitions
Check if each substring is a palindrome before adding it to the partition
Return all valid partitions as an array of strings
ACID properties in DBMS ensure data integrity and consistency.
Atomicity: All operations in a transaction are treated as a single unit of work. Either all operations are successfully completed or none are.
Consistency: Database remains in a consistent state before and after the transaction. Constraints are enforced to maintain data integrity.
Isolation: Transactions are executed independently without interference from oth...
Tip 1 : Prepare minimum 2-3 good projects and understand those projects thoroughly. Have in-depth understanding and confidence over Data Structures and get maximum insight of its concepts. Ensure to have complete understanding working of these projects and what logic has been implemented with-in project
Tip 2 : While resolving a problem, ensure to keep an eye on time and space complexity. Work on the strategies to optimize the solution.
Tip 3 : Practice more on reasoning and aptitude questions.
Tip 1 : Mention only and only those projects, skills and achievements in which you have complete and thorough knowledge. Most of the question will be around these and in case if you are unable to answer these questions it leaves a bad impression on the interviewer.
Tip 2 : Do not add too many projects. Add only one or two good projects in which you have proper knowledge.
Tip 3 : Resume should not be more than 1 page and try to keep only those details in resume in which you find yourself more comfortable.
Amazon interview questions for designations
I was interviewed in Jan 2021.
Round duration - 60 minutes
Round difficulty - Medium
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 within the matrix.
Iterate over each row and column to search for the target integer X.
Utilize the sorted nature of the matrix to optimize the search process.
Return the position of X if found, otherwise return -1 -1.
Given an integer array/list arr
and an integer 'Sum', determine the total number of unique pairs in the array whose elements sum up to the given 'Sum'.
The first line c...
Count the total number of unique pairs in an array whose elements sum up to a given value.
Use a hashmap to store the frequency of each element in the array.
Iterate through the array and for each element, check if (Sum - current element) exists in the hashmap.
Increment the count of pairs if the complement exists in the hashmap.
Round duration - 60 minutes
Round difficulty - Medium
Given a matrix MAT
of size N * M
, where each cell is either on fire or safe, determine if a person can reach an escape cell without being burnt. The person starts from ...
Determine if a person can reach an escape cell without encountering fire in a given matrix.
Check if the person can reach an escape cell without encountering fire by simulating the movement of the person and fire spread.
If the person can reach an escape cell, return the time taken; otherwise, return -1.
Consider the constraints and edge cases while implementing the solution.
Tip 1 : Be confident. Develop minimum 2-3 projects and know those projects completely.
Tip 2 : Practice DSA at-least 200 questions and Algo.
Tip 3 : Practice aptitude and reasoning questions.
Tip 1 : Mention only those skills, projects or achievements in which you have thorough knowledge.
Tip 2 : Add only one or two good projects in which you have in-depth knowledge. Also do the same for skills, do not add many skills.
Tip 3 : Mention only those achievements which showcase your technical skills, communication skills or teamwork spirit.
Get interview-ready with Top Amazon Interview Questions
I was interviewed in Jan 2021.
Round duration - 60 minutes
Round difficulty - Medium
Your task is to find the sum list of two numbers represented by linked lists and return the head of the sum list.
The sum list should be a linked...
Add two numbers represented by linked lists and return the head of the sum list.
Traverse both linked lists simultaneously while keeping track of carry from previous sum
Create a new linked list to store the sum of the two numbers
Handle cases where one linked list is longer than the other by padding with zeros
Update the sum and carry at each node while iterating through the linked lists
Given a singly linked list of integers, determine if the linked list is a palindrome.
A linked list is considered a palindrome if it reads the same forwar...
Check if a given singly linked list of integers is a palindrome or not.
Traverse the linked list to find the middle element using slow and fast pointers.
Reverse the second half of the linked list.
Compare the first half with the reversed second half to determine if it's a palindrome.
Round duration - 60 minutes
Round difficulty - Medium
You are provided with two integers, 'N' and 'D'. Your objective is to determine the square root of the number 'N' with a precision up to 'D' decimal pl...
Implement a function to find the square root of a number with a given precision up to a specified number of decimal places.
Implement a function that takes two integers N and D as input and returns the square root of N with precision up to D decimal places.
Use mathematical algorithms like Newton's method or binary search to approximate the square root with the desired precision.
Ensure that the difference between the com...
You are provided with a sorted dictionary (by lexical order) in an alien language. Your task is to determine the character order of the alien language from this dictiona...
Given a sorted alien dictionary in an array of strings, determine the character order of the alien language.
Iterate through the dictionary to build a graph of character dependencies.
Perform a topological sort on the graph to determine the character order.
Return the character array representing the order of characters in the alien language.
Tip 1 : The most fundamental and important thing to prepare are Data Structures and Algorithms. Be very much clear on your basics and skills.
Tip 2 : Revise OOPS thoroughly.
Tip 3 : Practice DSA (minimum 200), aptitude and reasoning questions regularly.
Tip 1 : The resume should not be more than 1 page. Be brief and write only those skills, projects or achievements which you have completed yourselves and have thorough knowledge. Avoid unnecessary details like hobbies, parent's name, photo, etc.
Tip 2 : Add a link to your LinkedIn, GitHub, website etc.
I was interviewed in Jan 2021.
Round duration - 50 Minutes
Round difficulty - Medium
Given an array consisting of N integers, your task is to determine how many k-element subsequences of the given array exist where the bitwise AND of the subsequence's elem...
Find the maximal AND value and count of subsequences in an array.
Iterate through all possible k-element subsequences and calculate their AND value.
Track the maximal AND value and count of subsequences achieving this value.
Return the maximal AND value and count modulo 1000000007.
Round duration - 50 Minutes
Round difficulty - Easy
Semaphores are synchronization primitives used to control access to shared resources in a multi-threaded environment.
Semaphores can be used to limit the number of threads accessing a resource simultaneously.
They can be binary (mutex) or counting semaphores.
Operations on semaphores include wait (P) and signal (V).
Example: In a producer-consumer problem, semaphores can be used to control access to a shared buffer.
Round duration - 50 Minutes
Round difficulty - Easy
Virtual memory is a memory management technique that allows a computer to compensate for physical memory shortages by temporarily transferring data from RAM to disk storage.
Virtual memory allows programs to use more memory than is physically available on the system.
It helps in running multiple programs simultaneously by allocating a portion of the hard drive as additional RAM.
Virtual memory uses a combination of RAM an...
Tip 1 : Practice Atleast 250 Questions
Tip 2 : Do atleast 2 projects
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.
I was interviewed in Dec 2020.
Round duration - 60 minutes
Round difficulty - Medium
Given a singly linked list of integers, determine if the linked list is a palindrome.
A linked list is considered a palindrome if it reads the same forwar...
Check if a given singly linked list of integers is a palindrome or not.
Traverse the linked list to find the middle element using slow and fast pointers.
Reverse the second half of the linked list.
Compare the first half with the reversed second half to determine if it's a palindrome.
You are located at point ‘A’, the top-left corner of an M x N matrix, and your target is point ‘B’, the bottom-right corner of the same matrix. Your task is to calcula...
Calculate total unique paths from top-left to bottom-right corner of a matrix by moving only right or down.
Use dynamic programming to solve the problem efficiently.
Create a 2D array to store the number of unique paths for each cell.
Initialize the first row and first column with 1 as there is only one way to reach them.
For each cell (i, j), the number of unique paths is the sum of paths from the cell above and the cell ...
Round duration - 60 minutes
Round difficulty - Medium
You are provided with two integers, 'N' and 'D'. Your objective is to determine the square root of the number 'N' with a precision up to 'D' decimal pl...
Implement a function to find the square root of a number with a given precision up to a specified number of decimal places.
Implement a function that takes two integers N and D as input and returns the square root of N with precision up to D decimal places.
Use mathematical algorithms like Newton's method or binary search to approximate the square root with the desired precision.
Ensure that the difference between the com...
ACID properties ensure database transactions are processed reliably and consistently.
Atomicity: Ensures that either all operations in a transaction are completed successfully or none at all.
Consistency: Ensures that the database remains in a valid state before and after the transaction.
Isolation: Ensures that transactions are executed independently and do not interfere with each other.
Durability: Ensures that once a tr...
Tip 1 : Gain in-depth understanding and confidence in Data Structures and get maximum insight of its concepts. Prepare minimum 2-3 projects and go through those projects completely. Have complete understanding and knowledge of how these project works and what logic has been implemented.
Tip 2 : Keep an eye on time and space complexity while attempting the questions.
Tip 3 : Practice more on reasoning questions and aptitude related questions.
Tip 1 : The resume should not be more than 1 page. Write only those skills, projects or achievements which you have completed yourselves and have thorough knowledge and ensure to write in brief and crisp only. Avoid unnecessary details like parent's name, photo, hobbies etc.
Tip 2 : Add a link to your GitHub, website, LinkedIn, were you can provide more details about you.
I was interviewed in Dec 2020.
Round duration - 60 Minutes
Round difficulty - Easy
3 coding questions and the duration of the test was 90 mins
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.
...Merge two sorted linked lists into a single sorted linked list without using additional space.
Create a dummy node to start the merged list
Compare the nodes of both lists and link them accordingly
Move the pointer to the next node in the merged list
Handle cases where one list is empty or both lists are empty
Time complexity: O(n), Space complexity: O(1)
You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N ma...
Find all possible paths for a rat in a maze from source to destination.
Use backtracking to explore all possible paths in the maze.
Keep track of visited cells to avoid revisiting them.
Explore all possible directions ('U', 'D', 'L', 'R') from each cell.
Terminate the search when the destination cell is reached.
Return the list of valid paths sorted in alphabetical order.
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 ...
Given an array of integers and a target, find all pairs of elements that add up to the target.
Iterate through the array and for each element, check if the complement (target - current element) exists in a hash set.
If the complement exists, add the pair to the result. If not, add the current element to the hash set.
Handle cases where the same element is used twice in a pair to avoid duplicates.
Return (-1, -1) if no pair...
Round duration - 60 Minutes
Round difficulty - Easy
Given an array of integers with 'N' elements, determine the length of the longest subsequence where each element is greater than the previous element. This...
Find the length of the longest strictly increasing subsequence in an array of integers.
Use dynamic programming to keep track of the longest increasing subsequence ending at each element.
Initialize an array to store the length of the longest increasing subsequence ending at each index.
Iterate through the array and update the length of the longest increasing subsequence for each element.
Return the maximum value in the ar...
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 ...
Return the boundary nodes of a binary tree in Anti-Clockwise direction starting from the root node.
Traverse the left boundary nodes in top-down order
Traverse the leaf nodes from left to right
Traverse the right boundary nodes in bottom-up order
Handle cases where duplicates occur in the boundary nodes
Implement the function without printing as printing is already managed
You are given a N x M
matrix of integers. Your task is to return the spiral path of the matrix elements.
The first line contains an integer 'T' which denotes the nu...
The task is to return the spiral path of elements in a given matrix.
Iterate through the matrix in a spiral path by keeping track of boundaries.
Print elements in the order of top, right, bottom, and left sides of the matrix.
Handle cases where the matrix is not a square matrix separately.
Consider edge cases like single row or single column matrices.
Round duration - 50 Minutes
Round difficulty - Medium
This was the last round, which consists of some basic hr questions and theory questions.
Tip 1 : Single page resume but brief
Tip 2 : Be calm and confident
Tip 3 : Solve previous interview questions of Amazon
Tip 1 : Don't make resume too lengthy.
Tip 2 : Mention your achievements in resume if any
I was interviewed in Dec 2020.
Round duration - 180 Minutes
Round difficulty - Hard
This was an online technical round on the SHL platform. The link of the test was shared to us around 3 PM.
There were 4 sections and each section had limited time. You can NOT go back to the question you have already attempted.
The webCam was not on.
Section 1: Automata/ Debugging
Section 2: Coding
Section 3: Amazon Principles/Personality Based
Section 4: Aptitude/Verbal
Ninja has studied the bitwise operations ‘AND’ and ‘XOR’. He received an assignment that involves these operations and needs help to complete it efficiently before ...
Calculate bitwise 'AND' and 'XOR' of subarrays of size at most K in an array efficiently.
Iterate through all subarrays of size at most K and calculate bitwise 'AND'.
Calculate the 'XOR' of all the bitwise 'AND' results to get the final output.
Optimize the solution to handle large input sizes efficiently.
In a network with 'N' system nodes, identified from 0 to N-1, and 'M' connections, determine all critical connections. A connection is critical if its removal disrupt...
Implement a function to find critical connections in a network with system nodes and connections.
Create an adjacency list to represent the network connections.
Use Tarjan's algorithm to find critical connections in the network.
Output the count of critical connections and the pairs of nodes involved.
Handle multiple test cases efficiently.
Ensure that the removal of a critical connection disrupts network connectivity.
Round duration - 50 Minutes
Round difficulty - Easy
Time: 9 am to 10 am
Mode of Interview: Amazon Chime Video
LiveCode: To write code, it was not a compiler.
The interviewer was very nice.
You are provided with an integer array ARR
of size N
. You need to return an array PRODUCT
such that PRODUCT[i]
equals the product of all the elements of ARR
...
Return an array of products of all elements in an array except the current element.
Iterate through the array twice to calculate the product of all elements to the left and right of each element.
Use two arrays to store the products of elements to the left and right of each element.
Multiply the corresponding elements from the left and right product arrays to get the final product array.
Round duration - 50 Minutes
Round difficulty - Medium
Time: 3 pm to 4 pm
Mode of Interview: Amazon Chime Video
LiveCode: To write code, it was not a compiler
The interviewer was time adamant and not very supportive. A shadow interviewer was also there.
Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:
1. get(key)
- Return the value of the key if it exists in the cache; otherw...
Design a Least Recently Used (LRU) cache data structure that supports get and put operations with capacity constraint.
Use a combination of a doubly linked list and a hashmap to efficiently implement the LRU cache.
Maintain a doubly linked list to keep track of the order of keys based on their recent usage.
Use a hashmap to store key-value pairs for quick access and update operations.
When a key is accessed or updated, mov...
Tip 1 : Practice different and quality questions from LeetCode, Interviewbit.
Tip 2 : Prepare subjects like OS, OOPS, DBMS.
Tip 1 : Keep it short and attractive.
Tip 2 : Be confident about everything you write in your 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 L/yr - ₹0 L/yr |
Transaction Risk Investigator
3.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate
2.8k
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