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
Journey
I took admission in tier 2 college for B.Tech in Computer Science. Firstly I planned that I will start learning DSA from the first year but I could not. So, I started DSA from the fourth semester and along with DSA, I also learned development because that is what I wanted to be. By the end of Third year, I was confident in both DSA and development but even then I keep on revising the concepts.
Application story
I was practising DSA on a regular day when I saw a small advertisement kind of on leetcode. I opened it and I got to find that company is looking for some fresher graduates to serve as SDE-Intern. I applied to it and after three rounds, I was selected.
Why selected/rejected for the role?
I think I was on point with my coding solutions to the questions asked in the interviews. I provided the optimal solutions and I was giving correct explanations to some theory questions asked.
Preparation
Duration: 4 Months
Topics: C++, Algorithms, Operating Systems, Object Oriented Programming, Database Management System and Computer Networks, Data Structures(Understand more on trees and graphs)
Tip
Tip

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.

Application process
Where: Other
Eligibility: No Backlog and above 6 CGPA
Resume Tip
Resume tip

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.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date28 Nov 2020
Coding problem2

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. Number of Pairs with Given Sum

Moderate
39m average time
60% success
0/80
Asked in companies
Goldman SachsAmazonSamsung

You have been given an integer array/list(arr) and a number 'Sum'. Find and return the total number of pairs in the array/list which when added, results equal to the 'Sum'.

Note:
Given array/list can contain duplicate elements.

(arr[i],arr[j]) and (arr[j],arr[i]) are considered same.
Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date19 Jan 2021
Coding problem2

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. OS Questions

The below two questions of operating systems were discussed: -
1. What is thrashing? (Learn)
2. Explain the Round Robin Scheduling algorithm? (Learn)

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