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

# SDE - 1

Amazon
3 rounds | 6 Coding problems

## Interview preparation journey

Preparation
Duration: 6 months
Topics: Data structure and Algorithms, DBMS, OS, System Design
Tip

Tip 1 : Participate in live contests on websites like Codechef, Codeforces etc as much as possible.
Tip 2 : Practice previous interview questions from LeetCode, GeeksForGeeks.
Tip 3 : Revise Computer Science subjects like DBMS, OOPS thoroughly.

Application process
Where: Campus
Eligibility: 6 CGPA
Resume tip

Tip 1 : Add projects and Internships if you have done any and add only those things which you really know.

## Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date15 Dec 2020
Coding problem1

The round consisted of mcqs and 1 coding question.

1. MCQ’s(Total -19)

Topics: Trees(5), semaphores(3), deadlocks(5) and algorithms(6)

### 1. Anagram Pairs

Easy
20m average time
80% success
0/40

#### Given a Binary Tree of 'N' number of total nodes, return the sequence of values of the leftmost and rightmost node at each level.

##### For example:
View more
Problem approach

I simply used hashing to solve this problem by checking the frequency of characters in both strings.

02
Round
Easy
Face to Face
Duration90 minutes
Interview date15 Dec 2020
Coding problem2

### 1. Successor Problem

Problem approach

I have done this question earlier so just use already built algorithm which traverses the number from the back.

### 2. Circular Move

Problem approach

I simply started from 0,0 point and if the robot again reaches to 0,0 point then motion is circular. I explained my whole approach on paper to the interviewer.

03
Round
Easy
Face to Face
Duration90 minutes
Interview date15 Dec 2020
Coding problem3

### 1. Find Number of Islands

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.

### 2. Reverse Stack Using Recursion

Problem approach

I told him proper algorithm with code on paper to the interviewer. He asked me to dry run the algorithm which I did by taking an example of stack.

### 3. Leftmost & Rightmost Nodes of Binary Tree

Problem approach

I used Level order approach to solve this question and the interviewer was quite satisfied with my approach and he was happy with my response.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

What is the result of 4 % 2?

Start a Discussion
Similar interview experiences
SDE - 1
3 rounds | 5 problems
Interviewed by Amazon
823 views
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
1126 views
SDE - 1
3 rounds | 6 problems
Interviewed by Amazon
431 views
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
1174 views
Companies with similar interview experiences
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
49224 views