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

SDE - 2

Amazon
upvote
share-icon
5 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Geeksforgeeks, educative.io, youtube playlists, leetcode, blog posts
Tip
Tip

Tip 1 : Start with brute force solution and then optimise the solution further
Tip 2 : Driving of design questions should be done by interviewee instead of interviewer
Tip 3 : Learn all technologies breadth and depth of any one project in your career which was most challenging.

Application process
Where: Referral
Eligibility: NA
Resume Tip
Resume tip

Tip 1 : Keep it to one page
Tip 2 : Don't add address, fathers name, passport number and other details.

Interview rounds

01
Round
Medium
Face to Face
Duration60 Minutes
Interview date17 Aug 2019
Coding problem1

1. Longest Palindromic Substring

Moderate
20m average time
80% success
0/80
Asked in companies
MathworksLivekeeping (An IndiaMART Company)Goldman Sachs

You are given a string 'str' of length 'N'.


Your task is to return the longest palindromic substring. If there are multiple strings, return any.


A substring is a contiguous segment of a string.


For example :
str = "ababc"

The longest palindromic substring of "ababc" is "aba", since "aba" is a palindrome and it is the longest substring of length 3 which is a palindrome. 

There is another palindromic substring of length 3 is "bab". Since starting index of "aba" is less than "bab", so "aba" is the answer.
Problem approach

Step 1 : I approached with brute force solution which was not good.
Step 2 : Interviewer asked me to optimise the solution.
Step 3 : I gave a O(n2) solution using two indexes and interviewer was happy.

Try solving now
02
Round
Medium
Face to Face
Duration60 Minutes
Interview date17 Aug 2019
Coding problem1

1. Vertical Order Traversal

Moderate
35m average time
65% success
0/80
Asked in companies
ArcesiumMorgan StanleyNoBroker

Given a binary tree, return the vertical order traversal of the values of the nodes of the given tree.

For each node at position (X, Y), (X-1, Y-1) will be its left child position while (X+1, Y-1) will be the right child position.

Running a vertical line from X = -infinity to X = +infinity, now whenever this vertical line touches some nodes, we need to add those values of the nodes in order starting from top to bottom with the decreasing ‘Y’ coordinates.

Note:
If two nodes have the same position, then the value of the node that is added first will be the value that is on the left side.
For example:
For the binary tree in the image below.

alt text

The vertical order traversal will be {2, 7, 5, 2, 6, 5, 11, 4, 9}.
Problem approach

Step 1 : Tool distance for root as 0, right edge as +1 horizontal distance and left edge as -1 horizontal distance.
Step 2 : Used HashMap to store the values and used the same to print.

Try solving now
03
Round
Medium
Face to Face
Duration60 Minutes
Interview date17 Aug 2019
Coding problem1

1. System Design Question

Design scrapers and crawlers

Problem approach

Tip 1 : Understand the problem completely.
Tip 2 : Write the functional and non functional requirements

04
Round
Medium
Face to Face
Duration60 Minutes
Interview date17 Aug 2019
Coding problem1

Hiring Manager round

1. Basic HR questions

1. Why Amazon?
2. Why leaving previous organisation?
3. Conflict with manager
4. Conflict with product
5. Conflict with peer
6. Innovation tried and outcome
7. Project related - describe the project and challenges faced in it.

05
Round
Medium
Face to Face
Duration60 Minutes
Interview date17 Aug 2019
Coding problem4

Bar Raiser

1. System Design Questions

1. Describe about your project and your contribution in it and technical challenges and how did you solve them.
2. Design Auction Bidding system.

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.

Try solving now

3.

4. Find Number Of Islands

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 - 2
3 rounds | 4 problems
Interviewed by Amazon
2446 views
0 comments
0 upvotes
company logo
SDE - 2
5 rounds | 7 problems
Interviewed by Amazon
2238 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 8 problems
Interviewed by Amazon
3374 views
0 comments
0 upvotes
company logo
SDE - 2
5 rounds | 7 problems
Interviewed by Amazon
910 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29892 views
8 comments
0 upvotes
company logo
SDE - 2
4 rounds | 7 problems
Interviewed by Dunzo
3163 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by Samsung
2588 views
0 comments
0 upvotes