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
Application story
During May–June every year, Amazon organizes HackOn. I had applied for it in 2024. The first round consisted of two programming questions, which had to be solved individually by each team member. The questions were of medium difficulty level. After clearing this round, I received a hiring interest form from Amazon for the SDE Intern role. About a week later, I got an Online Assessment (OA) on HackerRank, which included two medium-level DSA problems that I successfully solved. After a waiting period of 2–3 weeks, I finally received the interview call for the SDE Intern role.
Why selected/rejected for the role?
I was selected because during the interview I made sure to explain my approach and reasoning at each step. I first walked the interviewer through the brute-force solution to establish the basic logic, and then I refined it into the optimal solution. This not only demonstrated my problem-solving skills but also showed my ability to analyse trade-offs and improve efficiency.
Preparation
Duration: 3 months
Topics: Greedy Algorithms, Graph, Dynamic Programming, OOPS, OS, CN
Tip
Tip

Tip 1: Practice problems from past interview experiences, as many questions are often repeated in online assessments and interviews.

Tip 2: Focus on understanding the underlying logic behind problems rather than memorizing solutions—this will help you adapt to new variations during interviews.

Application process
Where: Other
Eligibility: Above 6.5 CGPA, (Stipend: 1.45L per month)
Resume Tip
Resume tip

Tip 1: Keep your resume concise, ideally limited to one page, and ensure it highlights your technical skills and experiences that you can confidently discuss for at least 20 minutes.

Tip 2: Include 2–3 impactful projects, relevant internship experiences, coding profiles, and notable achievements such as awards in hackathons or coding contests.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 minutes
Interview date22 Aug 2024
Coding problem2

This was a preliminary coding test held on unstop.

1. Valid Pairs

Easy
0/40
Asked in company
Amazon

Consider two arrays of integers a[n] and b[n]. What is the maximum number of pairs that can be formed such that a[i] >b[j] ? Each element can be in no more than one pair.

Problem approach

Sort both the arrays and then take two variables, i and j, both initially 0 for array a and array b, respectively. if a[i] > b[j] increment both the pointers and increment the answer; if not, then increment only the i pointer.

Try solving now

2. Sub-Arrays With Odd Sum

Easy
20m average time
80% success
0/40
Asked in companies
AmazonSnapdeal Ltd.Spinny

Find the count of subarrays whose sum is odd.

Problem approach

I solved it by taking a variable current sum till i and calculating the number of odd subarrays and even subarrays in indices.

Try solving now
02
Round
Medium
Online Coding Test
Duration70 minutes
Interview date30 Oct 2024
Coding problem2

After the Hackathon, I got an Hiring Interest form which I filled, After that I got an Online Assessment consisting of 2 DSA problems and leadership questions.

1. Subarray with Largest Possible Sum

Easy
0/40
Asked in company
Amazon

Given an array find the indices start and end which correspond to the starting and ending indices of the subarray containing the maximum sum of values.

Problem approach

I used Kadane's Algorithm to solve this problem.

Try solving now

2. Course Schedule II

Hard
50m average time
50% success
0/120
Asked in companies
AppleUberPhonePe

You are managing a large project with numTasks individual tasks, labelled from 0 to numTasks - 1. Some tasks depend on the completion of others before they can begin. These dependencies are represented by an array dependencies, where each element is a pair [a, b] indicating that task b must be completed before task a can start.

Your job is to figure out a valid order to execute all tasks such that every task begins only after all its dependencies are completed. If there are multiple valid execution orders, return any one of them. If it's impossible to complete all tasks due to circular dependencies, return an empty array.

Problem approach

From the test cases, I built the graph for the problem and noticed that its pattern is similar to the Course Schedule problem. I used indegree and outdegree arrays and applied topological sorting to obtain the correct answer.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date6 Nov 2024
Coding problem2

Interview round consisting of 2 DSA problems.

1. Edit Distance

Moderate
30m average time
70% success
0/80
Asked in companies
OYOGoldman SachsHCL Technologies

Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. You may perform the following operations on a word:
Insert a character
Delete a character
Replace a character

Problem approach

I started by thinking about a brute-force recursive solution, where for each character mismatch, I would try all three operations and recursively solve the subproblems. However, I realized this would have exponential time complexity. I defined a DP table dp[i][j] where dp[i][j] represents the minimum edit distance between the first i characters of word1 and the first j characters of word2.

Try solving now

2. Create Largest Number of Kth Length

Hard
0/120
Asked in company
Amazon

Given two arrays of length m and n with digits 0-9, and an integer k (k ≤ m + n), create the maximum number of length k from digits of the two arrays. The relative order of the digits from the same array must be preserved.

Problem approach

I first thought about generating all possible combinations of k digits from both arrays and then picking the maximum, but this was not efficient. I realized I could use a greedy approach to select the maximum subsequence from each array for every possible split (i from 0 to k), and then merge the two subsequences to form the largest number. For each possible split (i digits from the first array, k-i from the second), I generated the two subsequences and merged them by always picking the larger leading digit.

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