'Coding has over 700 languages', '67% of programming jobs aren’t in the technology industry', 'Coding is behind almost everything that is powered by electricity'
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
My coding journey started from my college Thapar Institute. I was not very much familiar with the coding stuff so I consulted my professors and seniors and they helped me a lot in telling me how to kickstart in the field. I learned various concepts like DSA, WEB Dev, ML during my college life till now.
Application story
I used to practice on CodeChef daily. One day, when I opened Codechef, I was notified about these openings in Amazon for the SDE Intern post. I thought that it can be a life-changing moment for me if I got selected. So, I applied for these posts.
Why selected/rejected for the role?
I was selected for the post because I was confident during the interviews, and I was also given the correct approach to the problems. I was also building the optimal solutions rather than just jumping directly to them.
Preparation
Duration: 1 month
Topics: Data structures, OOPS, Algorithms, Operating System, DBMS
Tip
Tip

Tip 1 : Data structures and algorithms are the most fundamental and important thing to prepare.
Tip 2 : Don't ignore OOPS.
Tip 3 : Solve DSA questions regularly.

Application process
Where: Codechef
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Avoid unnecessary details like hobbies, date of birth, parent's name, photo, etc., and keep it one-pager.
Tip 2 : Add a link to your GitHub, LinkedIn, website, phone number, etc.

Interview rounds
01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date18 Apr 2020
Coding problem2

I solved almost all the MCQs correctly and passed all the test cases for both the questions.

1. Max GCD Pair
Moderate
35m average time
75% success
0/80
Asked in companies
AmazonVisaApple

You are given an array of positive integers. Find the GCD(Greatest Common Divisor) of a pair of elements such that it is maximum among all possible pairs. GCD(a, b) ...

View more
Try solving now
2. Kevin and his Fruits
Moderate
25m average time
75% success
0/80
Asked in companies
AmazonAppleOLX Group

Kevin has ‘N’ buckets each consisting of some fruits. Kevin wants to eat at least ‘M’ fruits and so, he decided to set a marker (integer) as...

View more
Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date13 May 2020
Coding problem3
1. Bracket Number
Easy
15m average time
85% success
0/40
Asked in companies
GoogleFlipkartDunzo

Given a string ‘S’ comprising of some brackets. You need to print the number of every bracket.

For Example:
If S = (pq)() 
Then the output will be 1 1 2 2. First...
View more
Try solving now
2. Least common ancestor
Moderate
25m average time
75% success
0/80
Asked in companies
VisaGoogleSamsung

You are given an arbitrary binary tree with N nodes, whose nodes have their values in the range of integers. You are given two nodes x, y from the tree. You have to print the least co...

View more
Try solving now
3. Operating System

Threading, Process, Semaphore, Deadlock, hashmap implementation, time complexity. (Learn)

03
Round
Medium
Video Call
Duration45 minutes
Interview date2 May 2020
Coding problem2
1. Running median
Hard
46m average time
50% success
0/120
Asked in companies
GoogleHikeMyntra

You are given a stream of 'N' integers. For every 'i-th' integer added to the running list of integers, print the resulting median.

Problem approach

I solved it using heaps.
We can use a max heap on the left side to represent elements that are less than the effective median, and a min-heap on the right side to represent elements that are greater than the effective median.

After processing an incoming element, the number of elements in heaps differs utmost by 1 element. When both heaps contain the same number of elements, we pick t...

View more
Try solving now
2. Detect Cycle in a Directed Graph
Moderate
25m average time
65% success
0/80
Asked in companies
FlipkartAmazonAmerican Express

Given a directed graph, check whether the graph contains a cycle or not. Your function should return true if the given graph contains at least one cycle, else return false.

Try solving now
Join the Discussion
1 reply
profile
Kamala M |Level 5
25 Sep 2021

Is competitive programming required?

0 upvotes
0 replies
Reply
Similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
3071 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
2159 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 5 problems
Interviewed by Amazon
656 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
6374 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
9521 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
6564 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Google
4435 views
1 comments
0 upvotes