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

SDE - Intern

Amazon
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
I solved 700+ DSA questions over various coding platforms, made a LinkedIn network of 6.5k connections, made some good projects based on Java Backend and maintained an overall CGPA of 8.5
Application story
I registered on Amazon Wow Platform; they sent an interest form for an SDE Intern position in mid-June, after which the first test was conducted on the Mettl platform.
Why selected/rejected for the role?
I got selected because of a good grasp of Data Structures and Algorithms, especially advanced concepts like Dynamic Programming, Graphs, and Binary Search.
Preparation
Duration: 18 months
Topics: Data Structures (DP, Graphs etc.), Object Oriented Programming, Java Dev, C++, Other Core CS Subjects
Tip
Tip

Tip 1: Religiously prepare DSA if you are targeting Product Based Companies.
Tip 2: Keep the core concepts strong.
Tip 3: Maintain a good CGPA, but don't be too dependent on your college.

Application process
Where: Other
Eligibility: 6.5+ CGPA
Resume Tip
Resume tip

Tip 1 : Mention DSA profiles on the resume
Tip 2 : Mention at least 2 projects

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date5 Aug 2022
Coding problem2

1. House Robber

Moderate
26m average time
0/80
Asked in companies
PayPalExpedia GroupGoldman Sachs

A thief wants to loot houses. He knows the amount of money in each house. He cannot loot two consecutive houses. Find the maximum amount of money he can loot.

Try solving now

2. Longest Common Subsequence

Moderate
0/80
Asked in companies
ShareChatOptumSamsung

You have been given two Strings “STR1” and “STR2” of characters. Your task is to find the length of the longest common subsequence.

A String ‘a’ is a subsequence of a String ‘b’ if ‘a’ can be obtained from ‘b’ by deletion of several (possibly, zero or all) characters. A common subsequence of two Strings is a subsequence that is common to both Strings.

Try solving now
02
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date15 Aug 2022
Coding problem2

2 coding questions to be solved in 70 minutes along with 20 MCQs based on Amazon Leadership Principles.

1. Letter Combinations of a Phone Number

Moderate
35m average time
65% success
0/80
Asked in companies
AmazonOlaGoldman Sachs

Given a string S containing digits from 2 to 9 inclusive. Your task is to find all possible letter combinations that the number could represent.

A mapping from Digits to Letters (just like in Nokia 1100) is shown below. Note that 1 does not map to any letter.

example

Problem approach

Recursion, Maps

Try solving now

2. Covid Spread

Hard
45m average time
55% success
0/120
Asked in companies
MicrosoftAmazonFlipkart limited

You are given a city which contains 'N' x 'M' houses, where each house can have one of the following three conditions :

1. The value ‘0’ represents an empty house,
2. The value ‘1’ represents a non-infected person,
3. The value ‘2’ represents an infected person.

It takes one day to propagate the infection from an infected house to its adjacent (Front, Back, Left, Right) non-empty and non-infected house. An empty house can only break the line of propagation of infection.

You need to return the minimum number of days Covid will take to infect each and every house in the city. And for the God’s sake if this is impossible, return -1 instead.

Try solving now
03
Round
Medium
Face to Face
Duration60 minutes
Interview date10 Sep 2022
Coding problem3

It was a face-to-face interview, entirely focused on Data Structures and Algorithms. Three questions were asked based on Dynamic Programming, Graphs, and Binary Search, within a duration of 50 minutes. All the code had to be written on paper, which the interviewer collected at the end. Finally, the interviewer asked if I had any questions.

1. Water Supply In A Village

Hard
45m average time
55% success
0/120
Asked in companies
SamsungAppleFacebook

There are ‘N’ houses in a village. Ninja wants to supply water for all the houses by building wells and laying pipes.

For each house ‘i’, we can either build a well inside it directly with cost ‘WELLS[i]’, or pipe in water from another well to it. The total cost to lay pipes between houses is given by the array ‘PIPES’, where ‘PIPES[i]’ = ‘[HOUSE1, HOUSE2, COST]’ and the ‘COST’ represent the total cost connect ‘HOUSE1’ and ‘HOUSE2’ together using a pipe.

Note: Given all the connections are bidirectional.

For Example:

For ‘N’ = 3, ‘WELLS[]’ = ‘[1,2,2]’, ‘PIPES[]’ = [ [1, 2, 1], [2 , 3, 1]]. The image shows the costs of connecting houses using pipes. The best strategy is to build a well in the first house with cost 1 and connect the other houses to it with cost 2 so the total cost is 3.

img

Ninja wants to find out the minimum total cost to supply water to all houses in the village. Can you help the Ninja to find out this minimum cost?

Try solving now

2. Partition Equal Subset Sum

Moderate
25m average time
65% success
0/80
Asked in companies
AdobeAmazonOla

You are given an array 'ARR' of 'N' positive integers. Your task is to find if we can partition the given array into two subsets such that the sum of elements in both subsets is equal.

For example, let’s say the given array is [2, 3, 3, 3, 4, 5], then the array can be partitioned as [2, 3, 5], and [3, 3, 4] with equal sum 10.

Follow Up:

Can you solve this using not more than O(S) extra space, where S is the sum of all elements of the given array?
Problem approach

I first told the recursive approach then optimized it using memoization technique.

Try solving now

3. Find Nth root of M

Easy
10m average time
90% success
0/40
Asked in companies
DirectiAmazon

You are given two positive integers 'n' and 'm'. You have to return the 'nth' root of 'm', i.e. 'm(1/n)'. If the 'nth root is not an integer, return -1.


Note:
'nth' root of an integer 'm' is a number, which, when raised to the power 'n', gives 'm' as a result.


Example:
Input: ‘n’ = 3, ‘m’ = 27

Output: 3

Explanation: 
3rd Root of 27 is 3, as (3)^3 equals 27.


Problem approach

I got stuck on the while condition for some time but later was able to figure it out with the help of the interviewer.

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