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

SDE - Intern

Amazon
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
I come from an electrical engineering background but have a strong passion for coding and financial markets. Over time, I have solved more than 1,500 coding questions, which has strengthened my problem-solving skills and analytical thinking.
Application story
It was an on-campus opportunity. The first round was an online assessment consisting of two DSA questions—one on Binary Search (medium to hard level) and the other on the KMP algorithm (hard level). Both questions had to be solved to qualify. The second round was a technical interview. Since both rounds were eliminatory, performance in each stage was crucial for selection.
Why selected/rejected for the role?
I was selected for this role because I successfully cleared both eliminatory rounds. My strong grasp of DSA concepts and effective communication skills played a key role in helping me secure the position.
Preparation
Duration: 24 months
Topics: DSA, Web Development, Deep Learning, OOPS, DBMS, OS, CN
Tip
Tip

Tip 1: For Amazon, make DSA your primary focus. Practice consistently and cover problems of varying difficulty.
Tip 2: During interviews, think aloud while explaining your approach. If you start going off track, interviewers often provide subtle hints, so stay attentive.

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

Tip 1: Highlight your key achievements clearly to make your profile stand out.
Tip 2: Keep your writing crisp and to the point, avoiding unnecessary details.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date20 Aug 2024
Coding problem2

1. Capacity To Ship Packages Within D Days

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

You are the owner of a Shipment company. You use conveyor belts to ship packages from one port to another. The packages must be shipped within 'd' days.


The weights of the packages are given in an array 'weights'. The packages are loaded on the conveyor belts every day in the same order as they appear in the array. The loaded weights must not exceed the maximum weight capacity of the ship.


Find out the least-weight capacity so that you can ship all the packages within 'd' days.

Problem approach

We have to apply binary search for answer.

Try solving now

2. Repeated String Match

Moderate
0/80
Asked in company
Amazon

You are given two strings, 'a' and 'b'.

Your task is to find the minimum number of times you need to repeat string 'a' such that string 'b' becomes a substring of the resulting string. If it's impossible for 'b' to be a substring of a repeated 'a', you should return -1.

For example, repeating "abc" 3 times results in the string "abcabcabc".


Problem approach

We have to apply string matching algorithm. So I used KMP algorithm.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date26 Aug 2024
Coding problem2

Round started with an introduction. There were two interviewers. I had to solve 2 DSA questions in 50 minutes. I was able to solve and code in 35 minutes.

1. Remove Duplicates From String

Moderate
25m average time
0/80
Asked in companies
SquadstackAmazonGoldman Sachs

Given a string s, remove duplicate letters so that every letter appears once and only once. You must make sure your result is the smallest in lexicographical order among all possible results.

Example 1:

Input: s = "bcabc"
Output: "abc"
Example 2:

Input: s = "cbacdcbc"
Output: "acdb"
 

Constraints:

1 <= s.length <= 10^4
s consists of lowercase English letters.

Problem approach

I had used monotonic stack solution. Interviewer was satisfied.

Try solving now

2. K Most Frequent Elements

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

Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.

 

Example 1:

Input: nums = [1,1,1,2,2,3], k = 2
Output: [1,2]
Example 2:

Input: nums = [1], k = 1
Output: [1]
 

Constraints:

1 <= nums.length <= 10^5
-10^4 <= nums[i] <= 10^4
k is in the range [1, the number of unique elements in the array].
It is guaranteed that the answer is unique.

Problem approach

Used Priority queue/ Heap. Interviewer was satisfied.

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