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
Hello everyone! I am thrilled to share my personal journey with you all today. It has been a remarkable and transformative experience that I hope will inspire and motivate you on your own path to success. Like many of you, I started my journey with a burning desire to excel in my career and secure a job that would align with my aspirations. However, I soon realized that achieving this goal required a solid foundation of knowledge and skills. That's when I turned to trusted resources like Striver and Love Babbar, whose videos became my guiding light throughout my preparation. I began my journey by immersing myself in the basics. I dedicated countless hours to understanding the fundamental concepts, building a strong conceptual understanding of the subjects, and mastering the core principles. It wasn't always easy, and there were moments of frustration and self-doubt, but I persisted, knowing that the path to success was paved with persistence and hard work. One of the key lessons I learned during this phase was the importance of a growth mindset. I embraced the idea that failures and setbacks were not roadblocks but stepping stones on the path to success. Each challenge I encountered became an opportunity to learn, grow, and refine my skills. This mindset shift allowed me to overcome obstacles with resilience and determination. As I delved deeper into my studies, I also realized the value of practical application. It wasn't enough to merely understand the theory; I needed to put my knowledge into practice. I actively sought out opportunities to apply what I had learned through coding projects, participating in coding competitions, and collaborating with like-minded individuals in coding communities. These experiences not only sharpened my technical skills but also honed my ability to work in teams and solve real-world problems.
Application story
I applied in this company when it came on our campus. They provided us with a company application link on which we have to apply for the same.
Why selected/rejected for the role?
Selected: I was selected because my strong hold on Data Structure and Algorithm Basics and the 16 leadership principles of amazon
Preparation
Duration: 4 months
Topics: During my preparation for job interviews, I focused on a range of topics to build a strong foundation of knowledge. Here are some of the top topics I prepared:1. Data Structures: I invested significant time in understanding and implementing various data structures such as arrays, linked lists, stacks, queues, trees, graphs, and hash tables. I familiarized myself with their operations, time complexities, and common algorithms associated with each data structure.2. Algorithms: I studied and practiced essential algorithms like sorting (such as bubble sort, insertion sort, merge sort, quicksort), searching (linear search, binary search), graph algorithms (DFS, BFS, Dijkstra's algorithm), and dynamic programming algorithms.3. Object-Oriented Programming (OOP): I focused on mastering the principles of OOP and its concepts, such as classes, objects, inheritance, polymorphism, and encapsulation. I also delved into design patterns commonly used in software development.4. System Design: To tackle system design questions, I studied concepts related to designing scalable and efficient systems. This included understanding distributed systems, database design, caching, load balancing, and high-level architectural patterns like microservices.5. Operating Systems: I familiarized myself with the basics of operating systems, including processes, threads, memory management, file systems, and concurrency. Understanding how the operating system works helped me reason about performance and resource utilization.6. Database Management Systems (DBMS): I acquired knowledge about database concepts, relational database management systems (RDBMS), SQL queries, indexing, normalization, and database performance optimization techniques.7. Dynamic Programming: Dynamic programming is a powerful problem-solving technique, so I dedicated time to understand its principles and practiced solving dynamic programming problems. This involved recognizing overlapping subproblems and finding optimal solutions using memoization or tabulation.
Tip
Tip

Tip 1 : Do Atleast 150 DSA Questions, I used to do striver's DSA Sheet.
Tip 2 : Do Atleast 2 Decent Projects
Tip 3 : Try to go as deep as possible in CS core subjects.

Application process
Where: Campus
Eligibility: Above 6 CGPA
Resume Tip
Resume tip

Tip 1 : Try put any prior internship experience if you have one, because they gave a lot weightage to that, I did summer internship in amazon which became my edge against all other candidates.
Tip 2 : Do Atleast 2 Decent Projects

Interview rounds

01
Round
Medium
Online Coding Interview
Duration2 Hr
Interview date25 Aug 2021
Coding problem2

Out of 600 Candidates only 58 were shortlisted after this round.

1. Merge Intervals

Moderate
20m average time
80% success
0/80
Asked in companies
InnovaccerIntuitFacebook

You are given N number of intervals, where each interval contains two integers denoting the start time and the end time for the interval.

The task is to merge all the overlapping intervals and return the list of merged intervals sorted by increasing order of their start time.

Two intervals [A,B] and [C,D] are said to be overlapping with each other if there is at least one integer that is covered by both of them.

For example:

For the given 5 intervals - [1, 4], [3, 5], [6, 8], [10, 12], [8, 9].

Since intervals [1, 4] and [3, 5] overlap with each other, we will merge them into a single interval as [1, 5].

Similarly, [6, 8] and [8, 9] overlap, merge them into [6,9].

Interval [10, 12] does not overlap with any interval.

Final List after merging overlapping intervals: [1, 5], [6, 9], [10, 12].
Try solving now

2. Alternate Positive and Negative

Easy
15m average time
80% success
0/40
Asked in companies
Disney + HotstarPayUAmazon

You are given an array ‘arr’ that contains an equal number of positive and negative elements. Rearrange the given array such that positive and negative numbers are arranged alternatively. Also, the respective relative order of positive and negative should be maintained.

For example:

For the given arr[ ] = { -1, 3, 5, 0, -2, -5 } 
arr[ ] = {3, -1, 5, -2, 0, -5 } is valid rearrangement.
arr[ ] = {3, -1, 0, -2, 5, -5 } is invalid rearrangement; order of 0 and 5 is changed. 
arr[ ] = {3, -1, 5, 0, -2, -5 } is invalid rearrangement; positive and negative elements are not alternative.

Note:

Make changes in the same array and no returning or printing is needed.
Consider zero(0) as a positive element for this question.
It is guaranteed that an answer always exists.
Try solving now
02
Round
Medium
Face to Face
Duration50 Minutes
Interview date31 Aug 2022
Coding problem2

1. DS Question

He asked me to write the structure of the Node class for the Linked List first. Then I gave him an iterative approach. He told me to code it. As I started writing the code, I thought recursive would be cleaner, I said the same to him, and he told me to code whatever approach I want. I coded the recursive implementation. Once I was done, I told him that the code is done, just let me dry run it once. He said, let us do it together, he gave me input, and I took him through every line of the code, what value was being stored in each variable after each line, I wrote all of this down in the comments, he was satisfied with it and moved on to the next question.

2. Check If A Subset Exists

Moderate
25m average time
75% success
0/80
Asked in companies
AmazonWalmart

You are given an array ‘ARR’ of size ‘N’. Your task is to determine whether a subset of ‘ARR’ exists such that you can obtain 1 by multiplying all the elements in the subset by any arbitrary integer (can be different for different elements) and adding all of them.

Subset of an array 'ARR' is a tuple that can be obtained from 'ARR' by removing some (possibly all) elements of 'ARR'.

For example:

Consider the array [2,7,14] and the subset [2,7]. Here, we can multiply 2 with 4 and 7 with -1, and we can add the modified elements present in the subset to obtain 1. Hence, the answer is 1 in this case.
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
2163 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
1043 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3502 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Microsoft
8187 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Microsoft
4915 views
2 comments
0 upvotes