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: C++, Dynamic Programming, Operating system, System Design and Data Structures (Understand more on trees and graphs), Algorithms
Tip
Tip

Tip 1 : Understand the concepts Data Structures and get good understanding of its concepts. Practice coding questions and participate in online contests very frequently.
Tip 2 : Work strategically more on to analyze time being used to attempt the questions and space complexity. Always emphasis on the strategies to further optimize the solution. 
Tip 3 : Effective communication skills are key for interview.

Application process
Where: Campus
Eligibility: No Backlog and minimum 6 CGPA
Resume Tip
Resume tip

Tip 1 : Practice on good projects and mention them in your resume.
Tip 2 : Keep your resume to the point and do not mention any such skill, project or achievement in which you do not have any experience.
Tip 3 : Mention achievements which displays your technical skills, communication skills and teamwork. If you can showcase leadership quality, it will be added advantage. Go through your resume completely.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration70 minutes
Interview date3 Nov 2020
Coding problem2

1. Two Sum

Easy
10m average time
90% success
0/40
Asked in companies
ThalesSamsung R&D InstituteNatwest Group

You are given an array of integers 'ARR' of length 'N' and an integer Target. Your task is to return all pairs of elements such that they add up to Target.

Note:

We cannot use the element at a given index twice.

Follow Up:

Try to do this problem in O(N) time complexity. 
Try solving now

2. Shortest Path in a Binary Matrix

Moderate
37m average time
65% success
0/80
Asked in companies
SamsungGoogleOracle

You have been given a binary matrix of size 'N' * 'M' where each element is either 0 or 1. You are also given a source and a destination cell, both of them lie within the matrix.

Your task is to find the length of the shortest path from the source cell to the destination cell only consisting of 1s. If there is no path from source to destination cell, return -1.

Note:
1. Coordinates of the cells are given in 0-based indexing.
2. You can move in 4 directions (Up, Down, Left, Right) from a cell.
3. The length of the path is the number of 1s lying in the path.
4. The source cell is always filled with 1.
For example -
1 0 1
1 1 1
1 1 1
For the given binary matrix and source cell(0,0) and destination cell(0,2). Few valid paths consisting of only 1s are

X 0 X     X 0 X 
X X X     X 1 X 
1 1 1     X X X 
The length of the shortest path is 5.
Try solving now
02
Round
Medium
Video Call
Duration75 minutes
Interview date8 Dec 2020
Coding problem2

First explained the approach to the interviewer. He was satisfied with the discussions and asked me to write code.

1. SQL Questions

There were few basic SQL questions for DBMS. 
1. I was asked to describe a join to a non-technical person. 
2. There was a question to write query for how to select all customers who purchased minimum two items on two separate days. 
3. Given a table with a combination of flight paths, how would you identify the unique flight if you don't care which city is the destination or arrival location.

2. Special Binary Tree

Easy
0/40
Asked in companies
AmazonWipro

You are given an arbitrary binary tree. A binary tree is called special if every node of this tree has either zero or two children. You have to determine if the given binary tree is special or not.

If the given binary tree is special, return True. Else, return False to the given function.

Note:

1. A binary tree is a tree in which each node can have at most two children. 
2. The given tree will be non-empty i.e the number of non-NULL nodes will always be greater than or equal to 1.
3. Multiple nodes in the tree can have the same values, all values in the tree will be positive.
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
1512 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
49657 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
9655 views
0 comments
0 upvotes