Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Amazon interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Amazon
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 Months
Topics: Array,Linked List, Trees, Dynamic Programming, Graphs, Math, OOPS
Tip
Tip

Tip 1 : Keep talking about what are you thinking
Tip 2 : Don't beat about the bush if don't know the answer just say so
 

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Only show projects you are confident about
Tip 2 : Basic Web and android projects are also fine

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Miinutes
Interview date4 Aug 2020
Coding problem2

First round had MCQ + 2 coding questions. It was held in morning around 11 am. It was held on campus.

1. isPath

Moderate
15m average time
85% success
0/80
Asked in companies
Paytm (One97 Communications Limited)Amazon

Ninja is developing robotics delivery. They have a robot standing at the top left corner(0,0) of the matrix of size N*N. It has to deliver the parcel to the given (x,y) coordinate. There are also obstacles at random points in the matrix. The robot cannot enter the coordinate with an obstacle. It can only travel only on flat coordinates. The obstacle is denoted by 0 and the flat is denoted by 1. Matrix[ x ] [ y ] is denoted by 5. You have to return true if it is possible to deliver the package to the given coordinate Else return false. Given robot can move downwards and rightwards from the given coordinate and cannot enter over the obstacle and cannot move outside the matrix. Matrix[ 0 ][ 0 ] is always 1.

For Example :
Corresponding to the given matrix:-

From (0,0) coordinate robot cannot move to (0,1) 
coordinate since there is obstacle on it.
So to reach (2,2) The path is (0,0) then to (1,0) then to 
(2,0) then to (2,1) and finally (2,2).
Try solving now

2. Element that appears once

Easy
15m average time
85% success
0/40
Asked in companies
GoogleShareChatTata Consultancy Services (TCS)

You are given an arbitrary array ‘arr’ consisting of N non-negative integers, where every element appears thrice except one. You need to find the element that appears only once.

Try solving now
02
Round
Medium
Face to Face
Duration90 Minutes
Interview date7 Jul 2020
Coding problem2

Second Round was held in morning around 10-11 am. There was one interviewer working on his laptop. Interviewer was really helpful and first offered me water and then for a bit talked about himself.

1. BST Iterator 2

Moderate
10m average time
90% success
0/80
Asked in companies
UberAmazonPaytm (One97 Communications Limited)

You are given a class named as BSTIterator that represents an iterator over inorder traversal of a binary search tree. You need to implement the following things as follows:

1. BSTIterator(Node root) - It is a parameterized constructor in which you are given the root of the Binary search tree. It will be called whenever an object of BSTIterator is created.

2. next() - This member function will return the next element in the in-order traversal of the binary search tree. You need to implement this function.

3. hasNext() - This function will return true if there exists the next element in the traversal else it will return false. You need to implement this function

4. prev() - This member function will return the previous element in the in-order traversal of the binary search tree. You need to implement this function.

5. hasPrev() - This function will return true if there exists the previous element in the traversal else it will return false. You need to implement this function

The binary search tree has ‘N’ nodes and you need to print the inorder traversal of the tree using the iterator.

Try solving now

2. Distance between two nodes of a Tree

Moderate
25m average time
60% success
0/80
Asked in companies
AmazonOracleGoogle

Given a binary tree and the value of two nodes, find the distance between the given two nodes of the Binary Tree.

Distance between two nodes is defined as the minimum number of edges in the path from one node to another.

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

Which is a DDL command in SQL?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Amazon
906 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
1167 views
1 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Amazon
467 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
1511 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
49656 views
5 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Samsung
11057 views
2 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Google
9654 views
0 comments
0 upvotes