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

SDE - 1

Amazon
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Data Structures, Algorithms, OOPS, DBMS, OS
Tip
Tip

Tip 1 : Focus more and more on competitive coding 
Tip 2 : Try to build nice portfolio on any coding platform like LeetCode or CodeChef because it will attract any recruiter. 
Tip 3 : Prepare any one and only one language for coding because it will help you to learn syntax by heart.

Application process
Where: Other
Eligibility: 7 CGPA, good in programming/DSA
Resume Tip
Resume tip

Tip 1 : Don't write over skills in your resume.
Tip 2 : Don't make resume more than 2 pages.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date18 Nov 2021
Coding problem2

Timing-no such timings.
you need to give the test within 5 days of getting the test mail.

Test is conducted virtually through Hackerrank platform and after that it redirects to Amazon page where we need to answer questions related to Amazon’s Leadership Principles and workstyles.

1. Left View Of Binary Tree

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

You have been given a binary tree of integers. You are supposed to find the left view of the binary tree. The left view of a binary tree is the set of all nodes that are visible when the binary tree is viewed from the left side.

Example:

example

The left view of the above binary tree is  {5, 7, 14, 25}.
Problem approach

Step 1 first initialize the queue
Step 2 number of nodes at current level
Step 3 Traverse all nodes of current level
Step 4 Print the left most element at the level
Step 5 Add left node to queue if left child exists
Step 6 Add right node to queue if right child exists and then return the queue

Try solving now

2. Basic HR Question

we need to answer questions related to Amazon’s Leadership Principles, candidate behavior questions and workstyles.

For Example-
Are you open to listen others opinion whether that guy is correct or not

02
Round
Hard
Face to Face
Duration60 Minutes
Interview date2 Dec 2021
Coding problem1

We need to solve 1 or 2(based on interviewer) coding question within 1 hour in which we need to explain our approach before writing the code and we need to give optimal solution of the approach.

1. Minimum Jumps

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

Bob lives with his wife in a city named Berland. Bob is a good husband, so he goes out with his wife every Friday to ‘Arcade’ mall.

‘Arcade’ is a very famous mall in Berland. It has a very unique transportation method between shops. Since the shops in the mall are laying in a straight line, you can jump on a very advanced trampoline from the shop i, and land in any shop between (i) to (i + Arr[i]), where Arr[i] is a constant given for each shop.

There are N shops in the mall, numbered from 0 to N-1. Bob's wife starts her shopping journey from shop 0 and ends it in shop N-1. As the mall is very crowded on Fridays, unfortunately, Bob gets lost from his wife. So he wants to know, what is the minimum number of trampoline jumps from shop 0 he has to make in order to reach shop N-1 and see his wife again. If it is impossible to reach the last shop, return -1.

Problem approach

Still i don't know it's solution so i can't.

Try solving now
03
Round
Hard
Online Coding Interview
Duration60 Minutes
Interview date2 Dec 2021
Coding problem2

We need to solve 1 or 2(based on interviewer) coding question within 1 hour in which we need to explain our approach before writing the code and we need to give optimal solution of the approach

1. Preorder traversal of a BST

Moderate
15m average time
85% success
0/80
Asked in companies
HSBCDisney + HotstarOracle

You have been given an array/list 'PREORDER' representing the preorder traversal of a BST with 'N' nodes. All the elements in the given array have distinct values.

Your task is to construct a binary search tree that matches the given preorder traversal.

A binary search tree (BST) is a binary tree data structure that has the following properties:

• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.

Note:

It is guaranteed that a BST can be always constructed from the given preorder traversal. Hence, the answer will always exist.
Example:
From PREORDER = [20, 10, 5, 15, 13, 35, 30, 42] , the following BST can be constructed:

example

Problem approach

Through recursion i solved this question

return [root.val],self.inorder(root.left),self.inorder(root.right)

Try solving now

2. Spiral Order Traversal of a Binary Tree

Easy
20m average time
75% success
0/40
Asked in companies
PayUAtlassianAmazon

You have been given a binary tree of 'N' nodes. Print the Spiral Order traversal of this binary tree.

For example
For the given binary tree [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
    1
   / \
  2   3
     / \
    4   5

Output: 1 3 2 4 5
Problem approach

I don't know it's solution so i can't.

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