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: 4 Months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Practice questions from leetcode, geeksforgeeks
Tip 2 : Focus on skills, internships, projects, and experiences.
Tip 3 :Practice mock interviews before the actual interview

Application process
Where: Campus
Eligibility: None
Resume Tip
Resume tip

Tip 1 : Have at least 2 good projects mentioned in your resume with a link
Tip 2 : Focus on skills, internships, projects, and experiences.
Tip 3 : Make it simple, crisp, and one page

Interview rounds

01
Round
Medium
Video Call
Duration60 Minutes
Interview date8 Jul 2022
Coding problem1

It was a technical round completely based on Data structure. The interviewer was very friendly and helpful

1. K Largest Element

Moderate
10m average time
90% success
0/80
Asked in companies
AmazonWalmartPayPal

You are given an unsorted array containing ‘N’ integers. You need to find ‘K’ largest elements from the given array. Also, you need to return the elements in non-decreasing order.

Problem approach

(Use Sorting) 
1) Sort the elements in descending order in O(n*log(n)) 
2) Print the first k numbers of the sorted array O(k).

Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date8 Jun 2022
Coding problem1

It was 2nd technical round completely based on Data structure. The interviewer was very friendly and helpful

1. Next Greater Element

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

You are given an array arr of length N. You have to return a list of integers containing the NGE(next greater element) of each element of the given array. The NGE for an element X is the first greater element on the right side of X in the array. Elements for which no greater element exists, consider the NGE as -1.

For Example :

If the given array is [1, 3, 2], then you need to return [3, -1, -1]. Because for 1, 3 is the next greater element, for 3 it does not have any greater number to its right, and similarly for 2.
Problem approach

The idea is to use two loops , The outer loop picks all the elements one by one. The inner loop looks for the first greater element for the element picked by the outer loop. If a greater element is found then that element is printed as next, otherwise, -1 is printed.

Follow the steps mentioned below to implement the idea:

Traverse The array from index 0 to end.
For each element start another loop from index i+1 to end.
If a greater element is found in the second loop then print it and break the loop, else print -1.

Try solving now
03
Round
Medium
Face to Face
Duration60 Minutes
Interview date20 Jul 2022
Coding problem1

It was 3rd technical completely based on the Data structure. The interviewer was very friendly and helpful

1. Stock Span

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

Afzal has been working with an organization called 'Money Traders for the past few years. The organization is in the money trading business. His manager assigned him a task.


Given an array ’prices’ which denotes stock prices for ’n’ days, e.g., 'prices[ i ]' = price of the stock at ‘ith’ day, Find the stock's span for each day.


The span of the stock's price today is defined as the maximum number of consecutive days(starting from today and going backward) for which the price of the stock was less than today's price.


Example:
Input: ‘n’ = 7,  ‘prices’ = [100, 80, 60, 70, 60, 75, 85]

Output: [1, 1, 1, 2, 1, 4, 6]

Explanation: 
On the sixth day, when the stock price was 75, 

The span came out to be 4 because the last three prices(plus today) were less than the current or the sixth day's price.

Similarly, we can deduce the remaining results.
Note:
You don’t need to print anything. Just implement the given function
Problem approach

A Stack Based approach :

In this approach, I have used the data structure stack to implement this task.
Here, two stacks are used. One stack stores the actual stock prices whereas, the other stack is a temporary stack.
The stock span problem is solved using only the Push and Pop functions of Stack.
Just to take input values, I have taken array ‘price’ and to store output, used array ‘span’.

Try solving now
04
Round
Medium
HR Round
Duration60 Minutes
Interview date20 Jul 2022
Coding problem1

It was the 4th technical + HR round completely based on the Data structure taken by two interviewees. The interviewer was very friendly and helpful

1. Basic HR questions

Tell me about yourself 

Tell me about the most challenging project

 Tell me about the basic pillars of OOPs 

what are acid properties

 Am I ready to relocate to any location in India?

 Explain the situation when you deal with a difficult customer 

Explain the situation where you made a mistake 

Conflict with your manager 

Explain your best project 

How would you design the Facebook

Problem approach

Tip 1: HR round questions are focused on amazon's leadership principle. Prepare two examples for each principle
Tip 2: Be confident and focus on your communication
Tip 3: Prepare for the behavioral questions from previous interviews experiences

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
3085 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
2295 views
1 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Amazon
1593 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
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