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: 8 months
Topics: Data Structures, Dynamic Programming, Union Find, Segment Trees, OOPS, Graph Algorithms, Tree Algorithms, STL
Tip
Tip

Tip 1 : Complete all previously asked questions before sitting in the Interview, also try to find recently asked questions by the company in other colleges.
Tip 2 : Practice Consistently as it requires a lot of patience to develop good thinking abilities
Tip 3 : Give not more than a hour to a question and solve questions with diverse concepts.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Be concise, donot explain working of your projects there just give name and a line of description about projects.
Tip 2 : Only write what you know in the resume, false resume leads to unexpected questions.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 Minutes
Interview date16 Sep 2020
Coding problem2

Round started at 6pm in the evening and had 4 sections.

1. Fire in the cells

Hard
15m average time
85% success
0/120
Asked in companies
AmazonVMware Inc

You are given a matrix 'MAT' of size ‘N’ * ‘M’, where ‘N’ is the number of rows and ‘M’ is the number of columns. Value ‘0’ in a cell represents that the cell is set on fire initially, (at time t = ‘0’), and the cells which don’t have fire initially have value = ‘1’, and are called safe cells.

If a cell is on fire, then in one second the fire will expand to its adjacent cells (left, right, top, bottom) if they are not already on fire.

You are given the position of a person as integers ‘X’ and ‘Y’ denoting the cell (‘X’, ‘Y’). In one second the person can move from its current cell to any one of its adjacent cells, provided they are not on fire.

You have to determine if the person can move through the matrix to one of the escape cells without burning himself i.e. without going through the fire cells. If it’s possible, return time taken, else return -1.

Note:

1. Escape cells in this problem are all such cells that lie on the edge of the matrix but not on the corner. i.e all such cells which are in the first row, first column, last row, and last column excluding the four corner cells are considered as valid escape cells.

2. A cell once set on fire continues to remain on fire till the end.

3. Note that rows are indexed from 0 to ‘N’ - 1 and columns are indexed from 0 to ‘M’ - 1.

4. The escape cells may also be initially on fire or can catch fire from some neighboring cell.
Try solving now

2. 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
02
Round
Medium
Face to Face
Duration78 minutes
Interview date5 Oct 2020
Coding problem2

The round started at 11 am and was conducted on amazon chime, They provided me a link to live sheet where I had to write all the code. Interviewer was very good at conducting a smooth interview and provided me small hints as I got stuck at some points.

1. Unique Element In Sorted Array

Easy
15m average time
85% success
0/40
Asked in companies
AmazonOlaLenskart.com

You are given a sorted array ‘arr’ of ‘n’ numbers such that every number occurred twice in the array except one, which appears only once.


Return the number that appears once.


Example:
Input: 'arr' = [1,1,2,2,4,5,5]

Output: 4 

Explanation: 
Number 4 only appears once the array.


Note :
Exactly one number in the array 'arr' appears once.


Try solving now

2. Level Order Traversal

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

You have been given a Binary Tree of integers. You are supposed to return the level order traversal of the given tree.

For example:
For the given binary tree

Example

The level order traversal will be {1,2,3,4,5,6,7}.
Try solving now
03
Round
Medium
Face to Face
Duration60 Minutes
Interview date5 Oct 2020
Coding problem2

The round started at 4pm and was conducted on amazon chime, They provided me a link to live sheet where I had to write all the code.

1. Application Question

Given a webpage that receives a lot of requests, every request has a parameter that is the search query string associated with it. Whenever a request comes it calls a function storeRequest that has string as input parameter. At any point you have to tell the no of requests in last 10000 seconds that must be returned by a function named totalRequests

2. Find Duplicate in Array

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

You are given an array of integers 'ARR' containing N elements. Each integer is in the range [1, N-1], with exactly one element repeated in the array.

Your task is to find the duplicate element. The duplicate element may be repeated more than twice in the error, but there will be exactly one element that is repeated in the array.

Note :

All the integers in the array appear only once except for precisely one integer which appears two or more times.
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
15499 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