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
My journey began with strengthening my fundamentals—DSA, problem-solving, and disciplined practice—while consistently applying what I learned. Participating in Amazon HackOn 2025 was a key milestone. Although my team didn’t clear the initial round, it led to an individual opportunity: a 6-month SDE internship online assessment. I stayed focused, prepared thoroughly, and cleared the OA, followed by a round that involved DSA problems and discussions on leadership principles. This experience taught me that setbacks can redirect you toward better opportunities if you remain persistent and prepared.
Application story
Participating in Amazon HackOn 2025 was a key milestone. Although my team didn’t clear the initial round, it led to an individual opportunity: the online assessment for a 6-month SDE internship.
Why selected/rejected for the role?
I was rejected because I got stuck in the second half of the second problem during my virtual interview. Even after receiving a few hints, I could not make progress, and the interview ended with the second question only partially solved.
Preparation
Duration: 3 months
Topics: Graphs, Dynamic Programming, Trees, Searching and Sorting, OOPs, OS, DBMS
Tip
Tip

Tip 1: Practice 10–15 questions from all DSA patterns.
Tip 2: Practice company-wise questions (most frequent and most recent).
Tip 3: Read the company’s leadership principles.

Application process
Where: Other
Eligibility: No criteria, (Salary Package - 12 LPA)
Resume Tip
Resume tip

Tip 1: Include 2–3 strong, industry-relevant projects on your resume as proof of work.
Tip 2: Highlight achievements, such as winning hackathons, as they help.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date26 Sep 2025
Coding problem2

1. Find Minimum Number Of Coins

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

Given an infinite supply of Indian currency i.e. [1, 2, 5, 10, 20, 50, 100, 500, 1000] valued coins and an amount 'N'.


Find the minimum coins needed to make the sum equal to 'N'. You have to return the list containing the value of coins required in decreasing order.


For Example
For Amount = 70, the minimum number of coins required is 2 i.e an Rs. 50 coin and a Rs. 20 coin.
Note
It is always possible to find the minimum number of coins for the given amount. So, the answer will always exist.
Problem approach

Step-by-Step Explanation

Step 1: I initially thought of using a brute-force approach, where I checked every pair of elements using two nested loops to see if their sum equals the target.

Step 2: I realized this solution has a time complexity of O(N²), which is inefficient for large inputs. The interviewer then asked me to optimize it.

Step 3: I used a hash map to store each number and its index while iterating through the array.

Step 4: For each element, I checked whether (target − current element) already existed in the map. If it did, I returned the indices.

Step 5: This optimized the solution to O(N) time complexity with O(N) extra space, which satisfied the interviewer.

Try solving now

2. Maximum Subarray Sum

Moderate
35m average time
81% success
0/80
Asked in companies
HCL TechnologiesInformaticaSamsung

You are given an array 'arr' of length 'n', consisting of integers.


A subarray is a contiguous segment of an array. In other words, a subarray can be formed by removing 0 or more integers from the beginning and 0 or more integers from the end of an array.


Find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.


The sum of an empty subarray is 0.


Example :
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]

Output: 11

Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
Problem approach

Step-by-Step Explanation

Step 1: I initially thought of a brute-force approach, where I would generate all possible subarrays and calculate their sums.

Step 2: This approach involved nested loops and had a time complexity of O(N²) (or O(N³) if sums were recalculated), which is inefficient for large inputs.

Step 3: The interviewer asked me to optimize the solution.

Step 4: I observed that if the current subarray sum becomes negative, it will only reduce the sum of any future subarray. Therefore, it is better to start a new subarray from the next element.

Step 5:
Using this insight, I applied Kadane’s Algorithm, maintaining two variables:

currentSum to store the maximum sum ending at the current index

maxSum to store the overall maximum subarray sum

Step 6: At each step, I updated currentSum = max(A[i], currentSum + A[i]) and updated maxSum accordingly.

Step 7: This optimized the solution to O(N) time complexity with O(1) space, which satisfied the interviewer.

Try solving now
02
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date6 Nov 2025
Coding problem2

1. K-th largest Number BST

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

You are given a binary search tree of integers with 'N' nodes. Your task is to return the K-th largest element of this BST.

If there is no K-th largest element in the BST, return -1.

A binary search tree (BST) is a binary tree data structure which has the following properties.

• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
Problem approach

Step-by-Step Explanation

Step 1: I first recalled the key property of a BST:

Inorder traversal gives elements in sorted order (ascending).

Step 2: To find the Kth largest element, I realized I needed the elements in descending order.

Step 3: I used reverse inorder traversal (Right → Root → Left), which visits nodes from largest to smallest.

Step 4: While traversing, I maintained a counter that increments each time a node is visited.

Step 5: When the counter became equal to K, I stored the current node’s value as the answer and stopped further traversal.

Step 6: This approach works in O(N) time in the worst case and uses O(H) space due to recursion, where H is the height of the tree.

Step 7: The interviewer was satisfied because the solution efficiently leveraged BST properties without using extra data structures.

Try solving now

2. Articulation point

Moderate
0/80
Asked in companies
AmazonBrevistay

You are given an undirected unweighted graph and you are supposed to find all articulation in the graph.

Problem approach

Step-by-Step Explanation

Step 1: I first considered a brute-force approach, where I would remove each node one by one and check whether the graph becomes disconnected using DFS or BFS.

Step 2: This approach was inefficient because for every node removal, a full graph traversal is required, leading to a time complexity of O(V × (V + E)).

Step 3: The interviewer asked me to optimize the solution.

Step 4:
I used Tarjan’s Algorithm based on DFS traversal, maintaining:

disc[] → discovery time of each node

low[] → lowest discovery time reachable from that node

parent[] → parent of the node in the DFS tree

Step 5: During DFS:

A root node is critical if it has more than one DFS child.

A non-root node is critical if low[child] ≥ disc[node].

Step 6: Nodes satisfying these conditions were marked as critical nodes.

Step 7: This optimized the solution to O(V + E) time complexity using a single DFS traversal, which satisfied the interviewer.

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

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by Amazon
2089 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 7 problems
Interviewed by Amazon
1029 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3319 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
8141 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Microsoft
4862 views
2 comments
0 upvotes