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

SDE - Intern

Amazon
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Focus on graphs every interviewer ask at least one graph question
Tip 2 : Read about amazon leadership principles and STAR
Tip 3 : Make 2-3 good personal projects, interviewers ask about questions about personal projects.

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

Tip 1 : Make 2-3 good personal projects, interviewers ask about questions about personal projects.
Tip 2 : Make a single page resume

Interview rounds

01
Round
Hard
Face to Face
Duration60 minutes
Interview date16 Aug 2022
Coding problem2

- Morning time
- Environment was good.
- No
- Interviewer was good

1. Minimum Number Of Lamps

Easy
10m average time
80% success
0/40
Asked in companies
AdobeAmazonCoinbase

You are given a string 'S' containing dots(.) and asterisks(*) only, where the dot represents free spaces, and the asterisk denotes lamps. A lamp can lighten up its own cell as well as its immediate neighboring cells. You need to determine the minimum number of extra lamps that have to be installed at some free spaces in the string so that the whole string will be illuminated i.e. all the indices of the string can have access to the light of some lamp.

Note :
If a lamp is present at index 'I', then it illuminates index 'I' - 1, 'I' and 'I' + 1.

If a lamp is present at index 0, then it illuminates only 0 and 1.

Given that the length of the string is greater than or equal to 2.

If a lamp is present at the last index, then it illuminates the last and the second last index, given that the length of the string is greater than or equal to 2.

The length of each string is guaranteed to be at least 1.
Problem approach

s1 - Check minimum number of fountains that must be switched on to cover the road.
s2 - Apply array concept of data structures
s3 - to mini (1+0), 3) gives range = 1 to 1

Try solving now

2. Maximize Earnings

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

Mukesh is a hard worker and has a good running business. He has a list of profits he made in the last ‘N’ days. Mukesh wants to know what maximum profit he made in the few consecutive days. More Precisely he wants to know the maximum profit he made in any consecutive days in the range {‘A’, ‘B’} ( both inclusive).

You have to find the maximum profit Mukesh made in any consecutive days in the range {‘A’, ‘B’} ( both inclusive).

Note :
The profit of the Mukesh Business over ‘N’ days is shown by array/list ‘profit’. It may contain negative values as there will be a loss on those days.
Problem approach

s1 - Apply Start Time, End Time and Profit formula
s2 - Each of the next ‘3n’ lines 
s3 - Solve with merge sort

Try solving now
02
Round
Medium
Face to Face
Duration30 minutes
Interview date16 Aug 2022
Coding problem3

- Morning time
- Environment was good.
- No
- Interviewer was good

1. Data Structure Supporting Insert Delete And GetRandom

Easy
15m average time
85% success
0/40
Asked in companies
FacebookIntuitMicrosoft

Design and implement a data structure which supports the following operations:

insert(X): Inserts an element X in the data structure and returns true if the element was not present, and false otherwise.

remove(X): Removes the element X from the data structure, if present. Returns true if the element was present and false otherwise.

search(X): Search the element X in the data structure. Returns true if the element was present and false otherwise.

getRandom(): Return a random element present in the data structure.

Four types of queries denote these operations:

Type 1: for insert(X) operation.
Type 2: for remove(X) operation.
Type 3: for search(X) operation.
Type 4: for getRandom() operation.
Note:
It is guaranteed that at least one element will be present in the data structure when getRandom() operation is performed.
Follow Up:
Can you implement every operation such that it works in O(1) time?
Problem approach

s1 - Apply CURD operation
s2 - Apply element X in the data structure and returns true if the element was not present, and false otherwise.
s3 - Check for getRandom() operation.,at least one element will be present in the data structure.

Try solving now

2. Operating System Questions

What are semaphores?
What is virtual memory?

Problem approach

Tip 1 : Read Galvin for OS thoroughly.
Tip 2 : Do practice for SQL queries.

3. Maximum Points

Easy
10m average time
90% success
0/40
Asked in companies
AmazonIntuit

You are playing a video game, which contains an N x N grid. You start on the top left cell of the grid, and are free to move anywhere through the grid, any number of times.

Each cell in the grid has some number of points that you can collect from it and you can collect points at most once from each cell. Furthermore, it is possible to collect points from a cell, if and only if the cell lies on one of the two diagonals of the grid. Print the maximum number of points you can collect, given the grid.

For example:

If the grid is:
1 2
3 4
We can collect points from all cells as each cell lies on a diagonal. So, the maximum points will be 1+2+3+4 = 10.
Try solving now
03
Round
Medium
HR Round
Duration30 minutes
Interview date13 Sep 2022
Coding problem1

- Morning time
- Environment was good.
- No
- Interviewer was good

1. Basic HR Questions

1. Why did you decide to apply to this role?
2. What experience do you have that would be relevant to this role?
3. Tell me about your experience in …
4. What did you like most about the job description?
5. Why are you leaving your current job? / Why did you leave your previous job?
6. What do you know about our company’s product/services?
7. Tell me about this gap in your resume.

Problem approach

Tip 1 : Keep your communication good
Tip 2 : Drees well and practice mock
Tip 3 : Be confident while speaking

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
2163 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
1043 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
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
8187 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Microsoft
4915 views
2 comments
0 upvotes