Amazon interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Amazon
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 12 months
Topics: Data Structures, Algorithms, OOPS, OS, DBMS, CN
Tip
Tip

Tip 1 : Be consistent and solve 5-10 problems daily
Tip 2 : For new questions, don't spend too much time brainstorming. See the solution, understand in depth and learn for the future
Tip 3 : Revise previously solved questions on a daily basis
Tip 4 : Do time constraint based problem solving. e.g. give at least one timed contest daily
Tip 5 : Go through interview experiences of a specific company and find the associated trends in questions and topics

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Include only details relevant to the role of a software developer. Don't fill the resume with irrelevant certifications and achievements.
Tip 2 : Include previous internships if any, and include at least 3-4 personal projects (along with link for live demo if possible).
Tip 3 : Include coding profile and other links which depict your consistency in coding over a period of time. 
Tip 4 : Try to mention numerical metrics for all the points you are mentioning in your resume.
Tip 5 : Make your resume ATS friendly (will help in off campus as well)

Interview rounds

01
Round
Medium
Online Coding Interview
Duration75 minutes
Interview date11 Aug 2022
Coding problem2

The test slot was open from morning to evening and we could attempt anytime. The test was online.

1. Mike and Mobile

Moderate
35m average time
45% success
0/80
Asked in companies
SAP LabsAckoUber

Mike is a little boy who loves solving math problems. One day he was playing with his mom’s mobile. The mobile keypad contains 12 buttons { 10 digits(0-9) and 2 characters(‘*’ and ‘#’) }. Mike wants to know how many different numbers he can generate after pressing exactly the 'N' buttons on the keypad. Mike presses the buttons with the following rules:

1. He always presses the button which has a digit written on it, i.e., he never presses the ‘*’ and ‘#’ button.
2. Once he presses a button, the next button he presses should either be the same button or the button which is adjacent to the previous button.
3. In starting he can press any button except ‘*’ and ‘#’.

mobile

Mike is too little to solve this problem. Help Mike to solve this problem. As the answer can be large, so find the answer modulo 10^9 + 7.

Problem approach

Use an array to store how many times a button has to be pressed for typing a particular character and then traverse the given string character by character and add all the corresponding count of key presses to the sum variable.

Try solving now

2. NINJAS TRUCK

Easy
15m average time
85% success
0/40
Asked in companies
WalmartAmazonLivekeeping (An IndiaMART Company)

Ninja is assigned a task to deliver some boxes which contain different units having different weights. With the help of his truck, he will earn money on the basis of the number of units of boxes he will deliver by his truck. Ninja truck has some capacity on the number of boxes he can put on his truck.

So your task is to find a way so that ninja will choose boxes in a way that units will be maximum and he would be able to get more money you will be provided with an array of ‘BOX’, where BOX[i] = [countofBoxes, unitsperBox].

CountofBoxes represents the number of boxes of the same type i.e containing the units of the same value.

UnitsperBox represents the number of units in the box or we simply say that unit value.

And an integer ‘K’ denoting the limit of boxes on the truck.

Problem approach

Sort by the units then apply greedy algorithm.

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date13 Aug 2022
Coding problem2

For me the interview time was at 12:30PM. Since it was online so I gave it from my hostel room itself.

1. Search a 2D Matrix II

Easy
15m average time
85% success
0/40
Asked in companies
SalesforceAmazonFlipkart limited

You are given a 2-D matrix of dimensions 'N' x 'M', each row of the matrix is sorted in non-decreasing order, and each column is sorted in non-decreasing order.


You are also given an integer ‘X’. You are supposed to find whether 'X' is present in the given matrix.

Problem approach

By applying binary search first row-wise and then column-wise.

Try solving now

2. Check If Two Nodes Are Cousins

Moderate
10m average time
90% success
0/80
Asked in companies
IBMSamsung R&D InstituteAmazon

You are given an arbitrary binary tree consisting of N nodes, where each node is associated with a certain value, and two node values, a and b, you need to check if these nodes are cousins.

Two nodes are cousins of each other if they are at the same level and have different parents. Two nodes are said to be at the same level if the distance of both the nodes from the root node is the same.

A binary tree (BT) is a data structure in which each node has at most two children.

For the given binary tree:

alt txt

4 and 7 are cousins of each other since they are at the same level and have different parents, 3 and 2 respectively.
Problem approach

Use DFS to find each node's parent and level, and put them into a HashMap, then check if x and y are cousins.

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by Amazon
2162 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 7 problems
Interviewed by Amazon
1068 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
1042 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3501 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15499 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
8186 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Microsoft
4914 views
2 comments
0 upvotes