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

SDE - 1

Amazon
upvote
share-icon
4 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 12 months
Topics: Data Structures,Algorithms, OOPs, Computer Science fundamentals, DBMS
Tip
Tip

Tip 1 : Daily Practice DSA for atleast 2 hours
Tip 2 : Keep Fundamental concepts strong and clear
Tip 3 : Do mock Interviews to get comfortable on it.

Application process
Where: Referral
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Try to mentions self made good projects along with the coding platform handles, where you have done pretty well.
Tip 2 : Mentions some are the achievements, like good coding contest rank, hackathon participations, open source contributions.
Tip3 :  Don't fake on the projects, it's a red flag.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 minutes
Interview date13 Jan 2022
Coding problem1

1. Minimum Number of Platform Needed

Easy
23m average time
85% success
0/40
Asked in companies
Lenskart.comQualcommGartner

You are given the arrival and departure times of N trains at a railway station in a day. You need to find the minimum of platforms required for the railway station such that no train waits i.e No train should wait for the platform to be clear or free.

Problem approach

I was aware of this type of problem, so solved it with the mentioned optimal solution in a first go.

Try solving now
02
Round
Medium
Telephonic
Duration45 Minutes
Interview date8 Feb 2022
Coding problem1

1. Car Pooling

Moderate
30m average time
70% success
0/80
Asked in companies
AmazonMathworksUber

You are working as a cab driver. Your car moves in a straight line and moves toward the forward direction only. Initially, you have ‘C’ empty seats for the passengers.

Now, you are given ‘N’ number of trips that you have to make. In each trip, you are given three integers ‘Num’, ‘pickPoint’, and ‘dropPoint’ denoting that there are ‘Num’ numbers of passengers standing at 'pickpoint’ and you have to drop them at 'droppoint’.

Your task is to find if it is possible to pick up and drop off all the passengers of all the given trips or not.

Note :
You have a special type of car containing any number of seats.
Problem approach

Step1. Sort the trip based on start time and end time. Keep corresponding passengers for start and end in the sorted tuple
Step2. Keep 2 pointers s and e to keep track of start time and end time lists
Step3. Idea is if start_time[s] < end_time[e], you need to board new passengers. Subtract the capacity (capacity-passengers[start]). Increment start pointer
Step 4 . if start_time[s] < end_time[e], this means trip is over, so now the capacity has increased(capacity+passengers[end]). Increment end pointer

Try solving now
03
Round
Medium
Telephonic
Duration45 Minutes
Interview date8 Feb 2022
Coding problem1

1. Best Time To Buy and Sell Stock

Hard
20m average time
80% success
0/120
Asked in companies
AdobeRazorpayOYO

You have been given an array 'PRICES' consisting of 'N' integers where PRICES[i] denotes the price of a given stock on the i-th day. You are also given an integer 'K' denoting the number of possible transactions you can make.

Your task is to find the maximum profit in at most K transactions. A valid transaction involves buying a stock and then selling it.

Note
You can’t engage in multiple transactions simultaneously, i.e. you must sell the stock before rebuying it.
For Example
Input: N = 6 , PRICES = [3, 2, 6, 5, 0, 3] and K = 2.
Output: 7

Explanation : The optimal way to get maximum profit is to buy the stock on day 2(price = 2) and sell it on day 3(price = 6) and rebuy it on day 5(price = 0) and sell it on day 6(price = 3). The maximum profit will be (6 - 2) + (3 - 0) = 7.
Problem approach

Just maintain two pointers one for minimum price so far, and other to maintain max profit so far.
Code that i used.
int maxProfit(vector &prices) {
int maxPro = 0;
int minPrice = INT_MAX;
for(int i = 0; i < prices.size(); i++){
minPrice = min(minPrice, prices[i]);
maxPro = max(maxPro, prices[i] - minPrice);
}
return maxPro;
}

Try solving now
04
Round
Easy
HR Round
Duration45 minutes
Interview date9 Feb 2022
Coding problem1

This round is to check leadership principals, and to get to know about some projects, and some basic CS fundamentals.

1. Basic HR Questions

1. Where do you see yourself in next 5 years?

2. Why Amazon?

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
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
3 rounds | 6 problems
Interviewed by Amazon
1592 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
58237 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