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

SDE - 1

Amazon
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
I got the opportunity through a LinkedIn referral. As soon as I received the email for the online test, I started working aggressively on my DSA skills, primarily practising question banks on various coding platforms, since Amazon SDE interviews are mostly focused on DSA.
Application story
I saw a post on LinkedIn by an Amazon employee regarding an opening. I reached out to him with my resume, and he referred me for further processing. An Amazon Chime call was later set up with all the candidates to provide information on the next steps.
Why selected/rejected for the role?
I went through three rounds of interviews but was unable to clear the last technical round. I got stuck on one of the DSA questions and took much more time than I should have, which demotivated me for the rest of the round.
Preparation
Duration: 1 month
Topics: DSA, OOPS, System Design, Recursion advance questions, Sorting and searching algorithm questions
Tip
Tip

Tip 1: Be very comfortable with writing production-ready code; this will come from continuous practice.
Tip 2: Make sure you know and understand Amazon's core values.

Application process
Where: Referral
Eligibility: B.Tech or equivalent degree in technical domain, (Salary Package: 22 LPA)
Resume Tip
Resume tip

Tip 1: Include at least two projects if you are a fresher.
Tip 2: Try to highlight the impact you have made.

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date5 Jul 2021
Coding problem1

1. 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

I tried to do a basic traversal of the Matrix first but soon realised it to be a DFS question. 

Then I used the DFS algo but had to use another Matrix to store info. 

The interviewer asked me to provide a better solution without using this extra space. I was not able to complete that in time though.

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date5 Jul 2021
Coding problem2

1. Reverse Linked List

Moderate
15m average time
85% success
0/80
Asked in companies
WalmartHCL TechnologiesInfo Edge India (Naukri.com)

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

Reversing the linked list was pretty straightforward with a pointers approach.

Post solution, the interviewer asked me to explain how the solution I wrote works in principle.

The interviewer asked some questions about pointers and how they work.

Try solving now

2. Data Structure to create a Dictionary

Which data structure would you use to create a dictionary?

I suggested maps, discussion on why maps, and how they would work. Some discussion around hashing.

Discussion on whether can we use Linked lists.

Problem approach

Tip 1: Try expressing your thoughts with as much clarity as possible.
Tip 2: Usually interviewer is more interested in how you think than hearing a specific answer with this kind of discussion.
 

03
Round
Medium
Video Call
Duration90 minutes
Interview date5 Jul 2021
Coding problem1

1. Find Pair Sum in Rotated and Sorted array

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

Alice and Bob always loved to play with arrays. Alice took a sorted array and rotated it clockwise for a certain number of times.

For example:
Alice took a sorted array = [4,6,8,10,11] and if she rotates it by 3, then the array becomes: [8, 10, 11, 4, 6]. 

After rotating a sorted array, Alice gave a number ‘K’ to Bob and asked him to search for a pair in an array whose sum is equal to K. Since Bob was busy preparing for his semester exams, he asked you to help him.

You are given an array of integers ARR and a number K. Your task is to find out whether there exists a pair in the array ARR with sum K or not. If there exists a pair then you can return TRUE else return FALSE;

Problem approach

I first approached the problem by finding all the pairs.

The interviewer asked me to dry-run my solution, which went well.

Then, the interviewer asked me to optimize it.

I spent some time figuring it out, but I was able to come up with the two-pointer approach and successfully coded it as well.

The interviewer requested another dry run of my optimized solution. I found some issues during the dry run, which I fixed on the go. By this time, it was already 60 minutes, so he asked to extend the interview by another 30 minutes.

We then had a discussion about my past experience, during which he explained what his job looks like, followed by some questions about evaluating core values.

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 - 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
5984 views
5 comments
0 upvotes