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

SDE - Intern

Amazon
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
I was allotted NSIT for M.Tech in Computer Science. Firstly I planned that I will start learning DSA in the first year, but I could not (I wasted my first year in fun, but it is also essential I guess). So, I started DSA from the fourth semester and along with DSA, I also learned development because that is what I wanted to be. By the end of the Third year, I was confident in both DSA and development but even then, I keep on revising the concepts.
Application story
Amazon visited our college for SDE-1 and Intern hiring. Google form were circulated to fill personal details and need to attach resume along with it.
Why selected/rejected for the role?
I was selected as I was able to answer almost all coding questions and interviewer was quite impressed from me.
Preparation
Duration: 2 months
Topics: PuzzlesOOPSData StructuresAlgorithmsDBMSLogical ReasoningAptitude Questions
Tip
Tip

Tip 1 : For Amazon , puzzles are must, so you should prepare it thoroughly.
Tip 2 : Practice Company specific DS Algo questions from LeetCode,GFG etc.
Tip 3 : Have deep knowledge about your projects.

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

Tip 1 : Mention projects which you can explain and defend clearly.
Tip 2 : Resume should always be crisp and clear and should be of 1 page.
Tip 3 : If you do competitive programming , you can put links of your various online platforms profiles like Codechef, Codeforces etc.
Tip 4 : There should not be any false achievements or false experience mentioned in the resume.

Interview rounds

01
Round
Easy
Online Coding Test
Duration120 mins
Interview date7 Dec 2022
Coding problem2

This was the first round and it consisted of 40 MCQs from aptitude , logical reasoning etc. and 2 programming questions.
The test was on AMCAT platform.
The test was of 2 hours , web-proctored and switching between tabs was not allowed.

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.
Problem approach

1. Create two array left and right of size n. create a variable max_ = INT_MIN.
2. Run one loop from start to end. In each iteration update max_ as max_ = max(max_, arr[i]) and also assign left[i] = max_
3. Update max_ = INT_MIN.
4. Run another loop from end to start. In each iteration update max_ as max_ = max(max_, arr[i]) and also assign right[i] = max_
5.Traverse the array from start to end.
6. The amount of water that will be stored in this column is min(a,b) – array[i],(where a = left[i] and b = right[i]) add this value to total amount of water stored
7. Return the total amount of water stored.

Try solving now

2. Count Ways To Reach The N-th Stairs

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

You have been given a number of stairs. Initially, you are at the 0th stair, and you need to reach the Nth stair.


Each time, you can climb either one step or two steps.


You are supposed to return the number of distinct ways you can climb from the 0th step to the Nth step.

Note:

Note: Since the number of ways can be very large, return the answer modulo 1000000007.
Example :
N=3

Example

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
Problem approach

We can easily find the recursive nature in the above problem. The person can reach nth stair from either (n-1)th stair or from (n-2)th stair. Hence, for each stair n, we try to find out the number of ways to reach n-1th stair and n-2th stair and add them to give the answer for the nth stair.

Try solving now
02
Round
Medium
Video Call
Duration60 mins
Interview date7 Dec 2022
Coding problem4

The rounds consisted of puzzles, OS , OOPS , DBMS questions.

1. Puzzle

Q1. How do we measure forty-five minutes using two identical wires, each of which takes an hour to burn? We have matchsticks with us. The wires burn non-uniformly.

Q2.You have 5 jars of pills. Each pill weighs 10 grams, except for contaminated pills contained in one jar, where each pill weighs 9 grams. Given a scale, how could you tell which jar had the contaminated pills in just one measurement?

Q3.An employee works for an employer for 7 days. The employer has a gold rod of 7 units. How does the employer pay to the employee, so that the number of employee’s rod units increases by one at the end of each day? The employer can make at most 2 cuts in the rod.

Problem approach

Tip 1 : Do puzzles regularly.
Tip 2 : Practice puzzles on GeeksForGeeks regularly.
Tip 3 : Read interview experiences for more puzzles.

2. OS Problems

What is CPU Scheduling?
Round Robin in CPU Scheduling.
What are Semaphores and its applications?
What are semaphores?
What is Deadlock ?
What are the conditions of Deadlock ?
Real life scenarios where deadlock happens.
What is virtual memory?

Problem approach

Tip 1 : Have a thorough knowledge of concepts of Operating Systems.
Tip 2 : Check out videos for better understandings.

3. OOPs Questions

Real Life Examples of OOPS fundamentals like Abstraction , Encapsulation , Polymorphism , Inheritance.
To write a small program which shows how Dynamic Polymorphism work.
Difference between Dynamic and Static Polymorphism.
Exceptional Handling and some code related questions of Exceptional Handling.
How interfaces works and difference between abstract class and interfaces.

Problem approach

Tip 1 : Have deep knowledge of all OOPS concepts.
Tip 2 : Hands on coding experience is a plus.

4. DBMS Problems

What is Indexing ?
Types of Indexing and the difference between them.
2-3 SQL queries to find the nth largest salary , maximum salary of each department etc.
Difference between primary and unique constraints in SQL.
What is Normalization ?
Why it is needed ? 
Types of Normalizations and there conditions.

03
Round
Easy
HR Round
Duration30 mins
Interview date7 Dec 2022
Coding problem1

It was the last round and was all about Project discussion and HR questions.

1. Basic HR Questions

Q1. Project TechStack and what is the application of the project.
Q2. Discussion about the libraries and functions used in the project.
Q3. HR Questions - Do you have any higher studies plans.
Q4. What it makes you to be fit for our company.
Q5. Are you a team leader or a team member.

Problem approach

Tip 1 : Practice about HR questions beforehand so that you don't have to think much about them.
Tip 2 : Have a thorough understanding of your project and the functionality used.
Tip 3 : Have confidence while giving up your answers.

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
3501 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