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

SDE - 1

Amazon
upvote
share-icon
4 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, OOPS, LLD, Dynamic Programming, Graph, DBMS, Networking.
Tip
Tip

Tip 1 : Must have a good grab on all data structures.
Tip 2 : Must have done some cool projects to be discussed in the bar raise round
Tip 3 : Go through all 180 questions of interview present under Amazon Company filter.

Application process
Where: Referral
Eligibility: No Criteria
Resume Tip
Resume tip

Tip 1 : Make it very simple one page
Tip 2 : Must mention your projects.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration105 minutes
Interview date11 Jan 2021
Coding problem2

There were 2 coding questions to be solved in 105 minutes. Also we have to discuss the approach we have used to solve the questions.

1. K closest points to Origin

Moderate
25m average time
75% success
0/80
Asked in companies
AppleFacebookAmazon

Your house is located at the origin of a 2-D plane. You have 'N' neighbours who live at 'N' different points on the plane. You want to visit exactly 'K' different neighbours who live closest to your house, you are given a 2 - D matrix 'POINTS'. So, find out the coordinates of the neighbours you are going to visit. The answer is guaranteed to be unique.

Note:

The distance between two points on a plane is the Euclidean Distance.
For Example:
If N = 2, K = 1 and the points are {2,3}, {-1, 2}.

Then the distance of the first point from the origin is sqrt((2 - 0) ^ 2 + (3 - 0) ^ 2) = sqrt(13).

The distance of the second point from the origin is sqrt((-1 - 0) ^ 2 + (2 - 0) ^ 2) = sqrt(5).
Follow Up:
Can you solve this in O(N log K) time complexity?
Problem approach

1. Use a max heap (or max priority queue) to store points by distance
2. Store the first kk elements in the heap.
3.Then only add new elements that are closer than the top point in the heap while removing the top point to keep the heap at kk elements.
4.Return an array of the kk points stored in the heap

Try solving now

2. K Most Frequent Elements

Moderate
10m average time
85% success
0/80
Asked in companies
FacebookOracleAmazon

You are given an Integer array ‘ARR’ and an Integer ‘K’.


Your task is to find the ‘K’ most frequent elements in ‘ARR’. Return the elements in any order.


For Example:

You are given ‘ARR’ = {1, 2, 2, 3, 3} and ‘K’ = 2. 

The answer will {2, 3} as 2 and 3 are the elements occurring most times.
Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date19 Feb 2022
Coding problem2

The interviewer first introduced him and then asked me to for my introduction. After that he asked 2 DS questions.

1. Two sum

Easy
10m average time
90% success
0/40
Asked in companies
MeeshoAdobeInfo Edge India (Naukri.com)

You are given an array of integers 'ARR' of length 'N' and an integer Target. Your task is to return all pairs of elements such that they add up to Target.

Note:

We cannot use the element at a given index twice.

Follow Up:

Try to do this problem in O(N) time complexity. 
Problem approach

Sort the array and find the target sum with 2 pointer technique.

Try solving now

2. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
WalmartShareChatAmazon

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Problem approach

Simply gave the interviewer, DFS based approach by visiting adjacent connected components and counting the number of islands. The interviewer was satisfied with my approach.

Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date3 Mar 2022
Coding problem2

Only 2 coding questions were asked

1. Longest Sub-string with at most K Distinct Characters

Moderate
35m average time
65% success
0/80
Asked in companies
SAP LabsHikeBNY Mellon

You are given string S of length N, and an integer K. Your task is to find the length of the longest substring that contains at most K distinct characters.

Problem approach

create all the substring, While creating the substring i is fixed and j increases that means our substring increases by 1 character every time. after that use binary search on the answer that is the length of the substring using sliding window technique.

Try solving now

2. Heap Sort

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

You are given an array ‘ARR’ consisting of 'N' integers, and your task is to sort the given array in non-decreasing order using the Heap sort algorithm.

Problem approach

I had already practised it a day before. so it was easy for me to code. I simply used the heap sort algorithm to solve this problem

Try solving now
04
Round
Easy
Video Call
Duration60 minutes
Interview date31 Mar 2022
Coding problem2

It was a project discussion round and multiple questions on amazon principal

1. Technical Questions

Tell me about yourself.
Negative and positive things in you.
How will you resolve conflicts with your manager?
How will you resolve conflicts with your team mates?

Problem approach

Tip 1 : The cross questioning can go intense some time, think before you speak.
Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.
Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round, like what are the projects currently the company is investing, which team you are mentoring. How all is the work environment etc.

2. Project

He asked about one of project I mentioned in my CV. 
Multiple cross question on my role in the project, how can we make code less redundant. what is data base sharding. He also asked some questions on low level design.

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 - 1
3 rounds | 5 problems
Interviewed by Amazon
3085 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
2295 views
1 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Amazon
1593 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
8962 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Samsung
12649 views
2 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Microsoft
5983 views
5 comments
0 upvotes