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

SDE - Intern

Amazon
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 12 Months
Topics: Data Structure, OOPs, database management system, operating system, C++
Tip
Tip

Tip 1 : Practice as many questions as you can.
Tip 2 : OOPs concepts are really important.
Tip 3 : Write atleast 2 good projects on resume.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Only write what you know. They can easily catch lies.
Tip 2 : 1 page resume is good. Don't include more than one page is you are fresher.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date16 Sep 2020
Coding problem2

This round consisted of 20 MCQs and 2 coding problems. All the MCQs were from OOPs, DBMS & Algo, and aptitude. I solved all the questions in the given time. First coding question was of dynamic programming and second was of arrays. 20 students got shortlisted out of 134.

1. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
HCL TechnologiesCiti BankAtlassian

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Try solving now

2. Search In Rotated Sorted Array

Moderate
30m average time
65% success
0/80
Asked in companies
InformaticaDelhiveryGoldman Sachs

Aahad and Harshit always have fun by solving problems. Harshit took a sorted array consisting of distinct integers and rotated it clockwise by an unknown amount. For example, he took a sorted array = [1, 2, 3, 4, 5] and if he rotates it by 2, then the array becomes: [4, 5, 1, 2, 3].

After rotating a sorted array, Aahad needs to answer Q queries asked by Harshit, each of them is described by one integer Q[i]. which Harshit wanted him to search in the array. For each query, if he found it, he had to shout the index of the number, otherwise, he had to shout -1.

For each query, you have to complete the given method where 'key' denotes Q[i]. If the key exists in the array, return the index of the 'key', otherwise, return -1.

Note:

Can you solve each query in O(logN) ?
Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date23 Sep 2020
Coding problem1

The interviewer was really nice and supportive. After a short introduction, we went on to problem solving. He started with a easy question (as a warm up, I think). I coded and explained it in ~5 minutes. Then, he asked me another question, it would probably be medium level. I came up with a greedy solution using priority queue, explained, coded and tested it. We had some time left, so he asked me a follow up question. I was able to answer it, but I had no time left to code it. After that, I had a few minutes to ask any questions.

1. K Most Frequent Words

Moderate
36m average time
65% success
0/80
Asked in companies
SalesforceDunzoOla

You have been given an array/list 'WORDS' of 'N' non-empty words, and an integer 'K'. Your task is to return the 'K' most frequent words sorted by their frequency from highest to lowest.

Note:

If two words have the same frequency then the lexicographically smallest word should come first in your answer.

Follow up:

Can you solve it in O(N * logK) time and O(N) extra space? 
Try solving now
03
Round
Medium
Video Call
Duration60 Minutes
Interview date24 Sep 2020
Coding problem0

After the first interview I had a few minutes break, and then my second interview started. Again, the interviewer was very supportive and friendly. The interview was very similar to the previous one- after a short introduction my interviewer asked me an easy warm up question, then proceeded to my project section. I gave all the answers regarding my project. He asked me about technologies used in my projects and why I used those. I was a great experience overall. Then I had some time to ask question and the interview was over. Three students were selected. I was one of them.

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 - Intern
3 rounds | 3 problems
Interviewed by Amazon
2162 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 7 problems
Interviewed by Amazon
1068 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
1042 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3502 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15499 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
8186 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Microsoft
4914 views
2 comments
0 upvotes