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

SDE - 1

Amazon
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
I started coding in my 7th semester and did around 150-200 questions before applying to Amazon. Striver's SDE question list was of great help. I thoroughly reviewed my projects, every technology used in them, and their substitutes.
Application story
This was an on-campus opportunity, and I applied through the college's job portal. All interview rounds were conducted online (from home), and any communication related to the interview or job was conveyed through Amazon's official email.
Why selected/rejected for the role?
I was unable to answer questions related to OOPS and JAVA, due to which I believe, I was not selected.
Preparation
Duration: 4 months
Topics: Array, Linked List, Trees, HashMaps, SQL
Tip
Tip

Tip 1: Go through your projects thoroughly, and understand every technology used and their substitutes.

Tip 2: Practice at least 100 DSA questions of different types.

Tip 3: Above-average knowledge of core subjects is also important.

 

Application process
Where: Campus
Eligibility: no backlogs, CGPA above 8
Resume Tip
Resume tip

Tip 1: Add links to your projects so that the interviewer can access them directly.

Tip 2: Only include topics that you're confident about; don't add them just to fill the space.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration125 minutes
Interview date2 Nov 2021
Coding problem2

The interview was online from home and started at 5:30 PM and monitoring was done via web-cam.

1. Game Of Life

Moderate
15m average time
85% success
0/80
Asked in companies
AmazonGoldman SachsCuemath

You’re given a board of N * M size. Each element of this board is represented by either 0 or 1, where 0 means ‘dead’ and 1 means ‘live’. Each element can interact with all of its eight neighbors using the following four rules.

If any live cell has less than two live neighbors, then it dies.

If any live cell has two or three live neighbors, then it lives onto the next generation.

If any live cell has more than three live neighbors, then it dies.

A dead element with exactly three live neighbors becomes a live element.

Your task is to print the next state of this board using these four rules.
Problem approach

Since I solved around 200+ questions before the interview, I decided on the approach and then started writing the code 
Step 1:- Create a copy of the original matrix and update the original matrix.
Step 2:- Then find a number of alive and then update the value in the main matrix.

Try solving now

2. Longest Consecutive Sequence

Moderate
40m average time
70% success
0/80
Asked in companies
WalmartOptumAmazon

You are given an unsorted array/list 'ARR' of 'N' integers. Your task is to return the length of the longest consecutive sequence.

The consecutive sequence is in the form ['NUM', 'NUM' + 1, 'NUM' + 2, ..., 'NUM' + L] where 'NUM' is the starting integer of the sequence and 'L' + 1 is the length of the sequence.

Note:

If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For example-
For the given 'ARR' [9,5,4,9,10,10,6].

Output = 3
The longest consecutive sequence is [4,5,6].
Follow Up:
Can you solve this in O(N) time and O(N) space complexity?
Problem approach

I was unable to solve this problem.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date7 Nov 2021
Coding problem2

This interview was an online-from-home type and it started at 4 PM. It began with the introduction of the interviewer and interviewee, then followed by the basic intro of my projects.

1. 3Sum

Moderate
15m average time
85% success
0/80
Asked in companies
Goldman SachsAdobeAmazon

You are given an array/list ARR consisting of N integers. Your task is to find all the distinct triplets present in the array which adds up to a given number K.

An array is said to have a triplet {ARR[i], ARR[j], ARR[k]} with sum = 'K' if there exists three indices i, j and k such that i!=j, j!=k and i!=j and ARR[i] + ARR[j] + ARR[k] = 'K'.

Note:
1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
Problem approach

I solved this using 2 pointer approach
The main thing to keep in mind is, to always explain the approach to the interviewer first then start the code.

Try solving now

2. Add Linked Lists

Easy
20m average time
80% success
0/40
Asked in companies
IntuitMorgan StanleyQualcomm

Given two numbers represented by linked lists. Your task is find the sum list and return the head of the sum list.

The sum list is a linked list representation of addition of two numbers.

Try solving now
03
Round
Hard
Video Call
Duration60 minutes
Interview date27 Nov 2021
Coding problem2

It was an online interview conducted from home. It started with introductions by both the interviewer and interviewee, followed by the questions.

1. SQL Questions

SQL-related questions like:
- What are SQL constraints, and their examples? (Learn)
- Difference between RANK() and DENSE_RANK().(Learn)

Problem approach

Tip 1: Analyse and understand the problem properly, before presenting the solution
Tip 2: Try multiple test cases before sharing the solution
Tip 3: Also explain the solution verbally to the interviewer while presenting the code

2. Java Fundamentals

- Does the main fn. run in Java, if yes, when
- What is the access modifier? (Learn)
- What is pure virtual function? (Learn)
- Difference between abstract class and an interface. (Learn)

Problem approach

Tip 1: Understand all the basic concepts of the language you code in.
Tip 2: Prepare interview ques on OOPS thoroughly
 

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
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Amazon
3084 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
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