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

SDE - 1

Amazon
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
I started my journey after college and started doing DSA, I applied to various companies and contacted various HRs, In the end a HR contacted me and We started the process and I got the offer in the end, It took me 2 years to get this.
Application story
I was contacted by HR, They scheduled interviews after 2 weeks, The whole interview process took 7 days to complete there were 4 interviews in total, And The results and negotiation round was done after a week, I was informed about all the rounds via mail, And the rounds took place over their own application.
Why selected/rejected for the role?
I gave correct solutions with correct explanation and I was very verbal during the interviews, Also I was able to answer all the cross questions very fast and I gave good solutions for questions related to leadership principle.
Preparation
Duration: 2 months
Topics: DSA, Leadership principles, OOPS, System Design (LLD)
Tip
Tip

Tip 1 : Don't give up, Have good connections, Update your resume. 
Tip 2 : Be consistent and Have a discipline, A question a day will help you get a good job. Give appropriate amount of time to dev too and prepare decent projects.
Tip 3 : You are never prepared enough, So start applying as you prepare the interviews are generally scheduled after 2 weeks or so, So it will give you some time, But if you keep thinking you need more prep, Then the time will never come.

Application process
Where: Campus
Resume Tip
Resume tip

Tip 1 : Keep it short and simple, Don't overcomplicate it. 
Tip 2 : Keep it updated with current projects, Current profiles and other things.

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date6 Oct 2022
Coding problem2

It was scheduled in afternoon, It was nice and calm, The interviewer was very decent and Introduced himself and helped me through the process.

1. Largest subarray with equal number of 0s and 1s

Moderate
10m average time
85% success
0/80
Asked in companies
OraclePhonePeSAP Labs

You are given an array consisting of 0s and 1s. You need to find the length of the largest subarray with an equal number of 0s and 1s.

For example:

If the given array is: [0, 0, 1, 0, 1] The largest subarray would be: [0, 1, 0, 1] (last 4 elements) having length 4.
Problem approach

I gave the standard solution for it, Started with replacing all the 0 with -1 and then it turned into another classic problem that is longest subarray with zero sum, Which I then solved using prefix sum and Map.

Try solving now

2. Longest Word

Moderate
20m average time
85% success
0/80
Asked in companies
UberAppleAmazon

You are given an array/list of words ‘ARR’. Your task is to find all the words having the longest length which can be made from some other words on the list.

Note :

Return the list of all those words sorted in alphabetical. Return an empty list in case there are no such words

For Example :

Input: cat, banana, dog, nana, my, walk, walker, baby, dogwalkers, s, babymybaby

Output: babymybaby dogwalkers

Here in the given list of words, you can see that the words babymybaby, dogwalkers contain the words present in the list i.e. ‘s’, 'dog’, ‘walker’,‘baby’ and ‘my’ and both are of the same length.
Problem approach

I started with brute force solution I did not code it, I just explained it well and then I moved to the optimal solution, I missed some part here that was related to sorting, And the interviewer pointed it out to me, And I was able to figure it out in seconds, And I fixed it. And we moved to next questions.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date7 Oct 2022
Coding problem1

It was scheduled right after the last round and We started very fast without wasting much time, Which was good, Because I tend to get nervous.

1. Longest Substring Without Repeating Characters

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

Given a string input of length n, find the length of the longest substring without repeating characters i.e return a substring that does not have any repeating characters.

Substring is the continuous sub-part of the string formed by removing zero or more characters from both ends.

Problem approach

There was only one optimal solution so I moved forward with it, And coded it using sliding window technique.

Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date10 Oct 2022
Coding problem1

It was in afternoon, The interviewer was Front end engineer but we jumped directly to DSA questions.

1. 4 Sum II

Moderate
0/80
Asked in companies
Hewlett Packard EnterpriseAmazonMicrosoft

You are given 4 arrays 'ARR1’, 'ARR2’, 'ARR3’, 'ARR4’, each consists of ‘N’ numbers. Your task is to return the number of tuples (i, j, k, l) satisfying the following conditions:

0 <= i,j,k,l < ‘N’
ARR1[i] + ARR2[j] + ARR3[k] + ARR4[l] = 0.
Problem approach

I solved it using the brute force technique first, Again just gave the solution to start with and then gradually moved to two pointers and Gave the correct solution.

Try solving now

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