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

SDE - Intern

Amazon
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Arrays, Binary Search, Strings, Bit Manipulation, Linked Lists, Stacks And Queues, Tree Data Structure, Heaps And Maps, Dynamic Programming, Greedy Algorithm, Graph Data Structure & Algorithms
Tip
Tip

Tip 1 : Practice Company specific DS Algo questions from LeetCode, GFG, Interviewbit, Coding Ninjas etc.
Tip 2 : Take mock interviews with your friends to gain confidence.
Tip 3 : Try Solving Questions on Notepad as in interview IDE will not be provided.

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

Tip 1 : Write things in resume like projects, experience and skills which you can explain and defend clearly.
Tip 2 : Add links of your various online platforms profiles like Codechef, Codeforces etc. if you are active on these platforms.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration150
Interview date29 Sep 2020
Coding problem2

The test was on AMCAT platform.
The test was of 2.5 hours , web-proctored and switching between tabs was not allowed.

Test consist of 4 sections:

1 Debug section which had 7 questions to correct/write the code. (20min)
2 Coding section having 2 questions. (70 min)
3 Logical Reasoning section. (35 min)
4 Workstyle assessment. (20 min)

1. Search in a row wise and column wise sorted matrix

Moderate
15m average time
80% success
0/80
Asked in companies
NoBrokerOracleGoldman Sachs

You are given an 'N * N' matrix of integers where each row and each column is sorted in increasing order. You are given a target integer 'X'.


Find the position of 'X' in the matrix. If it exists then return the pair {i, j} where 'i' represents the row and 'j' represents the column of the array, otherwise return {-1,-1}


For example:
If the given matrix is:
[ [1, 2, 5],
  [3, 4, 9],
  [6, 7, 10]] 
We have to find the position of 4. We will return {1,1} since A[1][1] = 4.
Try solving now

2. Subtree of Another Tree

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

Given two binary trees T and S, check whether tree S has exactly the same structure and node values with a subtree of T, i.e., check if tree S is a subtree of the tree T.

A subtree of a tree T is a tree S consisting of a node in T and all of its descendants in T. The subtree corresponding to the root node is the entire tree; the subtree corresponding to any other node is called a proper subtree.

Try solving now
02
Round
Hard
Video Call
Duration60
Interview date18 Nov 2020
Coding problem2

Interview was conducted on Amazon Chime platform and for coding, link was shared on which I had to code.
Two questions were given to me and requested to solve in the desired time. 
Interviewer was friendly and supportive.

1. Reachable Nodes

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

You are given a graph with ‘N’ nodes and ‘M’ unidirectional edges. Your task is to find the number of nodes reachable from node ‘i’, where 0 <= ‘i’ <= ‘N’ - 1.

Note: A node ‘u’ is said to be reachable from node ‘v’, if there exists a path between node’ u’ and ’v’.

For example:

For given N = 4, M = 4, 

1

In the above example, the number of nodes reachable from nodes 0 , 1, 2 and 3 is 4.
Try solving now

2. Squares of a Sorted Array

Easy
15m average time
85% success
0/40
Asked in companies
Natwest GroupAdobeAmazon

You are given an array/list ‘ARR’ of ‘N’ integers. You have to generate an array/list containing squares of each number in ‘ARR’, sorted in increasing order.

For example :

Input:
‘ARR’ = [-6,-3, 2, 1, 5] 

If we take a square of each element then the array/list will become [36, 9, 4, 1, 25].
Then the sorted array/list will be [1, 4, 9, 25, 36].

Output :
[1, 4, 9, 25, 36].
Try solving now
03
Round
Medium
Video Call
Duration45
Interview date18 Nov 2020
Coding problem2

Interview was conducted on Amazon Chime platform and for coding, link was shared on which I had to code.
Three questions were given to me and requested to solve in the desired time. 
Interviewer was friendly and supportive.

1. Valid String

Moderate
18m average time
85% success
0/80
Asked in companies
VisaAmazonArcesium

You have been given a string 'S' containing only three types of characters, i.e. '(', ')' and '*'.

A Valid String is defined as follows:

1. Any left parenthesis '(' must have a corresponding right parenthesis ')'.
2. Any right parenthesis ')' must have a corresponding left parenthesis '('.
3. Left parenthesis '(' must go before the corresponding right parenthesis ')'.
4. '*' could be treated as a single right parenthesis ')' or a single left parenthesis '(' or an empty string.
5. An empty string is also valid.

Your task is to find out whether the given string is a Valid String or not.

Try solving now

2. Convert a binary tree to its sum tree

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

Given a binary tree of integers, you are supposed to modify the given binary tree to a sum tree where each node value is replaced by the sum of the values of both left and right subtrees in the given tree. The value of leaf nodes is changed to zero.

Example:
Below is the example showing the input tree and its sum tree.  

alt text

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
2163 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
1043 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3502 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
8187 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Microsoft
4915 views
2 comments
0 upvotes