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

SDE - 1

Amazon
upvote
share-icon
4 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Journey
I am a 2024 graduate from NIT Allahabad. I started my preparation in the third year of college. For placements, I practised on coding platforms and studied all the CS fundamentals, including OOP, OS, DBMS, and CN. I practised extensively on coding platforms throughout my third year.
Application story
I contacted the recruiter through LinkedIn. She responded and sent the test link. It was a contract-based SDE role.
Why selected/rejected for the role?
No, I had only 8 months of experience, and the required experience needed to be full-time, not from an internship.
Preparation
Duration: 12 Months
Topics: Data Structures, DP, Graph, Greedy, Linked List, String and Arrays, Binary Tree, OS, Oops, DBMS, CN
Tip
Tip

Tip 1: Practice problems on coding platforms and participate in contests.
Tip 2: Only solve quality problems; avoid unnecessary questions.
Tip 3: Don’t move on to other topics until your DSA is strong, and only list the topics you've mastered on your resume.

Application process
Where: Linkedin
Eligibility: 1 year experience was required, (Salary Package: 20 LPA)
Resume Tip
Resume tip

Tip 1: Quantify the impact of your internship/FTE projects in numbers.
Tip 2: Don’t include false information on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date27 Jul 2024
Coding problem2

There was a 7-day window, and it included 2 DSA questions. Only coding questions were provided.

1. Greedy

It was a medium-level question from the Striver sheet. I passed all the test cases, and the question wasn't too difficult.

2. Graph

It was somewhat difficult. The topic was graphs. I passed all the test cases, and the questions were familiar.

02
Round
Easy
Video Call
Duration60 minutes
Interview date31 Jul 2024
Coding problem2

Two DSA problems were asked. The interviewer asked me to introduce myself and discuss my internship experience. They expected me to align my answers with their leadership principles, which are very important for interviews at Amazon.

1. Meetings II

Moderate
10m average time
90% success
0/80
Asked in companies
IBMUrban Company (UrbanClap)BNY Mellon

Stark Industry is planning to organize Stark Expo, for which various departments have to organize meetings to check their preparations. Since Stark Tower has limited rooms available for the meeting, Tony decided to allot a room to each meeting so that all the meetings are organized in the least possible conference rooms, and a the moment, only one meeting will happen in one room. So, he asked JARVIS to allot each meeting a room and tell the minimum number of conference rooms to be reserved. But, since JARVIS was busy rendering another Iron Man suit model, he asked you to help.

You are given an array of integers ARR of size N x 2, representing the start and end time for N meetings. Your task is to find the minimum number of rooms required to organize all the meetings.

Note:

1. You can assume that all the meetings will happen on the same day.
2. Also, as soon as a meeting gets over if some other meeting is scheduled to start at that moment, they can then be allocated that room.

Note:

Try to solve the problem in linear time complexity.

For Example:

Consider there are three meetings scheduled with timings:
1pm - 4pm
3pm - 5pm
4pm - 6pm

At the start of time, meeting 1 will be allotted room 1, which will be occupied till 4 pm hence for meeting 2 we’ll have to provide another room. At 4 pm, meeting 3 can be organized in room 1 because by that time, meeting 1 would have ended. Hence we’ll require two rooms for holding all three meetings.
Try solving now

2. Search In A Row Wise And Column Wise Sorted Matrix

Moderate
15m average time
80% success
0/80
Asked in companies
DirectiSnapdealAcko

You are given an 'N * N' matrix of integers where each row and each column is sorted in increasing order. You are given a target integer 'X'.


Find the position of 'X' in the matrix. If it exists then return the pair {i, j} where 'i' represents the row and 'j' represents the column of the array, otherwise return {-1,-1}


For example:
If the given matrix is:
[ [1, 2, 5],
  [3, 4, 9],
  [6, 7, 10]] 
We have to find the position of 4. We will return {1,1} since A[1][1] = 4.
Problem approach

Tip 1: This is also from Striver sheet
Tip 2: I used searching and the standard algorithm for solving this question
 

Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date31 Jul 2024
Coding problem1

Two DSA problems were asked. The interviewer requested that I introduce myself and discuss my internship experience. They expected me to frame my answers in terms of their leadership principles, which are very important for interviews at Amazon.

1. Bipartite Graph

Moderate
50m average time
50% success
0/80
Asked in companies
UberWalmarteBay

Given a graph, check whether the graph is bipartite or not. Your function should return true if the given graph's vertices can be divided into two independent sets, ‘U’ and ‘V’ such that every edge (‘u’, ‘v’) either connects a vertex from ‘U’ to ‘V’ or a vertex from ‘V’ to ‘U’.

You are given a 2D array ‘edges’ which contains 0 and 1, where ‘edges[i][j]’ = 1 denotes a bi-directional edge from ‘i’ to ‘j’.

Note:
If edges[i][j] = 1, that implies there is a bi-directional edge between ‘i’ and ‘j’, that means there exists both edges from ‘i’ to ‘j’ and to ‘j’ to ‘i’.

For example

Given:
‘N’ = 3
‘edges’ = [[0, 1, 1], [0, 0, 1], [0,0,0]]. 

Problem approach

Tip 1: I solved the problem using dfs.
 

Try solving now
04
Round
Medium
HR Round
Duration60 minutes
Interview date6 Aug 2024
Coding problem3

Two DSA problems were asked. The interviewer requested that I introduce myself and discuss my internship experience. They expected me to answer in terms of their leadership principles, which are very important for interviews at Amazon.

1. Middle Of Linked List

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

Given a singly linked list of 'N' nodes. The objective is to determine the middle node of a singly linked list. However, if the list has an even number of nodes, we return the second middle node.

Note:
1. If the list is empty, the function immediately returns None because there is no middle node to find.
2. If the list has only one node, then the only node in the list is trivially the middle node, and the function returns that node.
Problem approach

Tip 1:Explained the brute force approach and coded the most optimized one.
 

Try solving now

2. Best Time to Buy and Sell Stock

Moderate
20m average time
80% success
0/80
Asked in companies
IntuitOptumOYO

You are given an array/list 'prices' where the elements of the array represent the prices of the stock as they were yesterday and indices of the array represent minutes. Your task is to find and return the maximum profit you can make by buying and selling the stock. You can buy and sell the stock only once.

Note:

You can’t sell without buying first.
For Example:
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
Problem approach

Tip 1: The solution is in the striver playlist.
 

Try solving now

3. HR Questions

They asked questions about my projects, and internship experience also some behavioural questions were asked.

Problem approach

Tip 1: Just be honest, don't lie for anything.
 

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Amazon
1515 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
1509 views
1 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Amazon
771 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
3509 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
52129 views
5 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Samsung
11503 views
2 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Google
10215 views
0 comments
0 upvotes