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

SDE - 2

Amazon
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 Month
Topics: Data Structures, Linked List, Stacks, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Practice DS/ Algorithm questions
Tip 2 : Thoroughly familiarize yourself with Amazon Leadership principles

Application process
Where: Company Website
Eligibility: 2+ year experience
Resume Tip
Resume tip

Tip 1 : Mention side projects
Tip 2 : Keep it one page if possible

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date28 Mar 2022
Coding problem1

First 30 minutes DS/Algo and next 30 mins behavioural questions

1. Simplify the Directory

Moderate
22m average time
70% success
0/80
Asked in companies
VisaGoldman SachsAmazon

You are given a path to a file/directory in Unix-style of length N, In a Unix-style file system, a dot(.) refers to the current directory. A double dot(..) refers to the previous directory in reference to the current directory. If there are multiple slashes between two directories you should consider it as a single slash.

Now, for a given directory path as a string, you are required to simplify the same and tell the final destination in the directory structure or the path.

The simplified path should always begin with a slash(/) and there must be a single slash between two directory names. There should not be a trailing slash.

Problem approach

Use stack to solve the problem

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date28 Mar 2022
Coding problem1

System design round taken by EM later followed by behavioural questions

1. System Design Question

Design a vending machine with cash/card support for payments

Problem approach

Tip 1 : Practice questions on Youtube.
Tip 2 : Try doing mock practice.

03
Round
Easy
Video Call
Duration60 minutes
Interview date30 Mar 2022
Coding problem1

DS algo round taken by SSE followed by behavioural questions

1. Clone a Linked List with random pointers

Easy
0/40
Asked in companies
ThalesAmazonQualcomm

You are given a linked list containing 'n' nodes, where every node in the linked list contains two pointers:


(1) ‘next’ which points to the next node in the list

(2) ‘random’ which points to a random node in the list or 'null'.


Your task is to create a 'deep copy' of the given linked list and return its head.


Note:
A 'deep copy' of a linked list means we do not copy the references of the nodes of the original linked list, rather for each node in the original linked list, a new node is created.


Problem approach

Tried maintaining a separate linkedlist with just next pointers

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