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
Journey
When I joined college in my first year, I didn’t know anything about coding. I was eager to learn but didn’t know where to start. Slowly, I began exploring web development, learning HTML, CSS, and JavaScript through online tutorials and small projects. By the third year, I realized the importance of problem-solving skills and started focusing on Data Structures & Algorithms (DSA). I spent countless hours practicing coding problems, understanding the logic behind algorithms, and improving my computational thinking. Along the way, I worked on multiple internships, including developing real-world applications and contributing to AI agent projects. This combination of practical development experience and strong DSA foundation helped me grow technically and prepared me to crack interviews.
Application story
I reached out to around 20 people in my LinkedIn connections requesting a referral. Out of them, only one person responded positively and supported me by providing the referral. I then applied for the position through the referral email he shared, which played a crucial role in getting my application noticed and moving forward in the interview process.
Why selected/rejected for the role?
Unfortunately, I wasn’t selected for this role, as during my interview process, another candidate was already chosen for the position. Nevertheless, the experience taught me valuable lessons about persistence, networking, and continuous learning, which I am applying toward my next opportunity.
Preparation
Duration: 4 months
Topics: DSA, Pointers, Algorithms, JavaScript Interview Questions, SQL, NoSQL
Tip
Tip

Tip 1: Focus mainly on DSA — aim to solve at least 400 problems.
Tip 2: Be prepared with 2–3 good projects you can explain in detail.
Tip 3: Practice solving questions within the given time limit to build speed and accuracy.

Application process
Where: Referral
Eligibility: Above 7.5 CGPA, (Salary package: 25 LPA)
Resume Tip
Resume tip

Tip 1: Add strong projects that showcase new or emerging technologies.
Tip 2: Highlight coding achievements such as ranks, contest performance, or ICPC participation.

Interview rounds

01
Round
Medium
Online Coding Test
Duration70 minutes
Interview date16 Aug 2025
Coding problem2

1. Extreme Subsequence Medians

Easy
0/40
Asked in company
Amazon

You are given an array of n integers and an integer k. Your task is to find the maximum and minimum possible median values among all possible subsequences of length k.


A subsequence is a sequence that can be derived from the array by deleting zero or more elements without changing the order of the remaining elements. The median of a subsequence is the middle element after it has been sorted.


1) For a subsequence of odd length k, the median is the element at position (k+1)/2 (1-based).


2) For a subsequence of even length k, the median is the element at position k/2 (the lower-middle element, 1-based).


Problem approach

To solve the problem of finding the maximum and minimum median of subsequences, the first step was to clearly understand the requirements. We are given an array of integers and an integer k, which represents the length of the subsequence. The goal is to efficiently determine the maximum and minimum median values among all possible subsequences of length k without generating every possible combination, as that would be computationally infeasible for large arrays.

The key insight was realizing that sorting the array provides a structured way to directly access the necessary elements for the answer. After sorting the array in ascending order, the minimum median corresponds to the middle element of the first k elements in the sorted array. This is because the smallest subsequence, in terms of element values, will yield the smallest median. On the other hand, the maximum median is obtained from the middle element of the last k elements in the sorted array. This subsequence consists of the largest elements, so its median is naturally the largest possible.

The median position is carefully calculated using zero-based indexing, taking the lower middle element when k is even to maintain consistency. Instead of generating all subsequences, which would have an exponential time complexity, we efficiently compute the result in O(n log n) time by just sorting the array once and performing simple index lookups.

For example, given the array [1, 3, 2, 5, 4] and k equal to 3, sorting the array gives [1, 2, 3, 4, 5]. The minimum median is the element at index one, which is 2, while the maximum median is the element at index three, which is 4. This approach guarantees correctness and performance, as it avoids unnecessary computations and focuses purely on sorted array properties.

Try solving now

2. Equal Cost Packages

Moderate
0/80
Asked in company
Amazon

In an online marketplace, you are tasked with creating product packages. You are given an array of integers, itemCosts, representing the cost of each available item.


Your goal is to form the maximum possible number of packages, subject to two rules:


1) Each package can contain at most two items.


2) All packages formed must have the same total cost.


Each item can be used in at most one package. Determine the maximum number of packages you can create.


Problem approach

To solve the problem of maximizing the number of packages where each package contains at most two items and all packages have the same total cost, I first recognized that a brute-force approach of trying all combinations would be too inefficient for large input sizes. Instead, I used a structured and efficient greedy strategy combined with sorting.

The first step was to sort the array of item costs in ascending order. Sorting helps because it places the smallest and largest elements next to each other, allowing us to efficiently pair items with the goal of forming equal-cost packages. After sorting, I used a two-pointer technique: one pointer starting at the beginning of the array (representing the cheapest item) and another pointer starting at the end of the array (representing the most expensive item).

The next step was to iterate through all possible target total costs, starting from the smallest possible (the cost of the cheapest item plus itself) up to the largest (the cost of the two most expensive items). For each target total cost, I attempted to form as many valid packages as possible using the two pointers. If the sum of the items at the two pointers matched the target total cost, it formed a valid package, and I moved both pointers inward. Otherwise, if the sum was less than the target cost, I moved the start pointer forward to consider a larger item. If the sum was greater, I moved the end pointer backward.

For each total cost attempt, I kept track of how many packages were successfully created. The solution was to return the maximum number of packages achieved for any total cost. This greedy and sorting-based method ensures that the solution runs efficiently in O(n log n) time, primarily due to sorting, and avoids the need to generate all possible subsequences.

Important considerations included handling edge cases where no valid packages are possible or where the number of items is odd, ensuring no item is used more than once, and carefully managing index boundaries to avoid out-of-range errors. This stepwise and logical approach guarantees both correctness and performance in solving the problem.

Try solving now
02
Round
Easy
Assignment
Duration60 minutes
Interview date16 Aug 2025
Coding problem3

1. Case Study

The questions in this round were primarily centred around a case study, designed to evaluate instantaneous decision-making and problem-solving skills. The main focus was to see whether I could analyse a situation quickly, identify the best course of action, and implement it effectively.

Key aspects included:

1. Decision-Making Under Pressure: Questions tested how quickly I could choose the correct approach when faced with incomplete or challenging information.

2. Error Identification and Correction: Some questions involved spotting flaws in code or logic and fixing them efficiently.

3. Handling Feedback and Comparison: Scenarios assessed how I reacted when my solution was critiqued or when others’ solutions were praised, emphasizing adaptability and learning.

4. Clear Communication of Thought Process: Evaluators wanted to see how well I could articulate my reasoning and justify my decisions.

5. Practical, Real-World Judgments: The case study simulated situations where multiple solutions coexist, testing my ability to balance correctness, efficiency, and clarity while making the right decision.

Problem approach

Tip 1: Decide Calmly & Logically: Analyze the situation step by step before choosing the best action.
Tip 2: Explain Your Reasoning: Communicate your thought process clearly to justify your decisions.
Tip 3: Stay Positive & Adaptive: Accept feedback, learn from others, and highlight the strengths of your approach.

2. Behavioural Assessment

This round was essentially a behavioural assessment, designed to evaluate self-awareness, strengths, and potential. The questions focused on understanding:

1. Self-Knowledge: Insights into my skills, experiences, and personal traits.

2. Problem-Solving & Initiative: How I approach challenges, make decisions, and take ownership.

3. Collaboration & Communication: How I interact with others, present my ideas, and work in a team.

The main objective was to see how well I understand myself, my capabilities, and how I can contribute effectively.

Problem approach

Tip 1: Be Self-Aware: Clearly articulate your strengths, skills, and experiences.
Tip 2: Show Initiative: Highlight how you take decisions, solve problems, and learn from challenges.
Tip 3: Stay Positive & Collaborative: Demonstrate adaptability, openness to feedback, and teamwork.

3. Decision Making

This round was designed to understand me holistically—my thought process, approach to problems, and decision-making style. The questions focused on:

1. Problem-Solving Approach: How I analyse challenges, prioritize steps, and reach solutions.

2. Thought Process & Reasoning: What considerations, strategies, and logic I apply when tackling problems.

The main goal was to evaluate how I think, reason, and act in practical and high-pressure situations.

Problem approach

Tip 1: Think Out Loud: Clearly explain your reasoning and what goes through your mind while approaching a problem.
Tip 2: Demonstrate Structured Problem-Solving: Break down problems into manageable steps, prioritize actions, and justify your decisions.
Tip 3: Be Self-Aware & Honest: Highlight your strengths, acknowledge limitations, and demonstrate adaptability.

03
Round
Easy
HR Round
Duration60 minutes
Interview date16 Aug 2025
Coding problem1

This round was designed to evaluate instantaneous decision-making skills under pressure. During the case study, I was informed that my code had errors and that it was not good enough. Instead of getting disheartened, I calmly re-analyzed my logic, identified the flaws, and explained my thought process clearly to the evaluators. I focused on fixing the errors step by step while maintaining clarity in my approach.

At the same time, I noticed that some higher authorities were particularly impressed by another candidate’s solution. Rather than feeling discouraged, I took it as a learning opportunity and confidently presented the strengths of my solution, emphasizing its correctness, efficiency, and adaptability. I remained composed, took constructive feedback, and showed a positive attitude toward collaboration, which reflected my ability to handle real-world situations where competing ideas coexist.

1. HR Questions

  • Explain why your approach may fail in some scenarios and how you would adjust it.
  • Your solution has been pointed out as having flaws. How would you respond and improve it?
  • Another candidate’s solution seems better in some aspects. How would you present the merits of your own solution?
  • Explain your solution step by step to someone unfamiliar with it, highlighting your reasoning.
  • How would you collaborate with teammates or other candidates when there are differing opinions on the solution?
  • Here’s a snippet of code that’s failing for certain inputs. Identify the issue and propose a fix.
Problem approach

Tip 1: Stay Calm & Analyze: Focus on logic, identify errors step by step.
Tip 2: Explain Clearly: Communicate your reasoning while fixing issues.
Tip 3: Be Positive & Confident: Highlight strengths, learn from others, stay composed.

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
2090 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
961 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15339 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
8142 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Microsoft
4863 views
2 comments
0 upvotes