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

SDE - 2

Amazon
upvote
share-icon
4 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Journey
Truly speaking, I was not fond of the world of computer science, but I was admitted to a B.Tech program in Computer Science anyway. Initially, I planned to start learning DSA in the first year, but I could not. So, I began studying DSA in the fourth semester, and along with DSA, I also learned development because that is what I wanted to pursue (a web developer). By the end of the third year, I was confident in both DSA and development, but I continued to revise the concepts. I had contact with a friend who was working at Amazon, and I asked him for a referral, which concluded my journey.
Application story
At the start of my fourth year of graduation, some of my friends were already placed in various companies. It started to worry me that I was the only one who had not even tried for an interview by then. One day, I saw an opening on the Amazon career site. I contacted my old childhood friend, who was already employed at Amazon, to get a referral, and I received one. After that, the interview process was scheduled.
Why selected/rejected for the role?
I think my skills and knowledge were up to the mark, and they found me to be a valuable candidate. Moreover, my communication skills contributed to my numbers.
Preparation
Duration: 2
Topics: System Design, Data Structures, OOPS, Dynamic programming, Algorithms, DBMS, OS
Tip
Tip

Tip 1 : Learn the concepts, not the solutions.
Tip 2 : You should have deep knowledge about the projects mentioned in your resume.

Application process
Where: Campus
Eligibility: 6.5 CGPA
Resume Tip
Resume tip

Tip 1 : Resume should be only 1 page.
Tip 2 : Try to tell a story through your resume. For e.g. - always mention the impact or scale of your projects/internship.

Interview rounds

01
Round
Medium
Online Coding Test
Duration75 Minutes
Interview date6 Sep 2022
Coding problem3

The test had 3 questions that had to be solved in 75 minutes. The test was of medium difficulty.

1. Meetings II

Moderate
10m average time
90% success
0/80
Asked in companies
IBMUrban Company (UrbanClap)BNY Mellon

Stark Industry is planning to organize Stark Expo, for which various departments have to organize meetings to check their preparations. Since Stark Tower has limited rooms available for the meeting, Tony decided to allot a room to each meeting so that all the meetings are organized in the least possible conference rooms, and a the moment, only one meeting will happen in one room. So, he asked JARVIS to allot each meeting a room and tell the minimum number of conference rooms to be reserved. But, since JARVIS was busy rendering another Iron Man suit model, he asked you to help.

You are given an array of integers ARR of size N x 2, representing the start and end time for N meetings. Your task is to find the minimum number of rooms required to organize all the meetings.

Note:

1. You can assume that all the meetings will happen on the same day.
2. Also, as soon as a meeting gets over if some other meeting is scheduled to start at that moment, they can then be allocated that room.

Note:

Try to solve the problem in linear time complexity.

For Example:

Consider there are three meetings scheduled with timings:
1pm - 4pm
3pm - 5pm
4pm - 6pm

At the start of time, meeting 1 will be allotted room 1, which will be occupied till 4 pm hence for meeting 2 we’ll have to provide another room. At 4 pm, meeting 3 can be organized in room 1 because by that time, meeting 1 would have ended. Hence we’ll require two rooms for holding all three meetings.
Try solving now

2. Find a value whose XOR with a given value is maximum

Easy
20m average time
80% success
0/40
Asked in companies
American ExpressOptumUrban Company (UrbanClap)

You are given an integer 'X' and your task is to find an integer 'Y' such that the bitwise XOR of the integers 'X' and 'Y' give the maximum possible value. The integer 'Y' should not be greater than 2305843009213693951 ((2^61) - 1).

A bitwise XOR is a binary operation that takes two bit patterns of equal length and performs the logical exclusive OR operation on each pair of corresponding bits. The result in each position is 1 if only one of the bits is 1, but will be 0 if both are 0 or both are 1.

Note:

1. The maximum obtainable value can always be stored in 64-bit memory space.
2. The given number 'X' is always non-negative.
Try solving now

3. Minimize the maximum difference between adjacent elements in an array

Easy
15m average time
85% success
0/40
Asked in companies
Urban Company (UrbanClap)SprinklrAmazon

You are given a non-decreasing array and an integer K. You need to remove exactly K integers from the given array such that the maximum difference between adjacent elements is minimum.

For example:
If the given array is: [2 6 7 7 10] and K = 2. We need to remove A[0] = 2 and A[4] = 10, then the resultant array would become [6 7 7], where the difference between adjacent pairs are {1, 0}. Thus our answer would be 1. You can see that there would not be any better answer than 1 for this array
Try solving now
02
Round
Medium
Video Call
Duration70 Minutes
Interview date6 Sep 2022
Coding problem3

1. Frequency In A Sorted Array

Easy
15m average time
85% success
0/40
Asked in companies
SprinklrOlaUrban Company (UrbanClap)

You are given a sorted array 'ARR' and a number 'X'. Your task is to count the number of occurrences of 'X' in 'ARR'.

Note :
1. If 'X' is not found in the array, return 0.
2. The given array is sorted in non-decreasing order.
Try solving now

2. Rotting Oranges

Moderate
20m average time
78% success
0/80
Asked in companies
Samsung R&D InstituteSalesforceSamsung

You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:

  • Value 0 - representing an empty cell.
  • Value 1 - representing a fresh orange.
  • Value 2 - representing a rotten orange.
  • Every second, any fresh orange that is adjacent(4-directionally) to a rotten orange becomes rotten.

    Your task is to find out the minimum time after which no cell has a fresh orange. If it's impossible to rot all the fresh oranges then print -1.

    Note:
    1. The grid has 0-based indexing.
    2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
    
    Try solving now

    3. Copy List with Random Pointer

    Easy
    10m average time
    90% success
    0/40
    Asked in companies
    MicrosoftUrban Company (UrbanClap)Amazon

    Given a linked list having two pointers in each node. The first one points to the next node of the list, however, the other pointer is random and can point to any node of the list or null. The task is to create a deep copy of the given linked list and return its head. We will validate whether the linked list is a copy of the original linked list or not.

    A deep copy of a Linked List means we do not copy the references of the nodes of the original Linked List rather for each node in the original Linked List, a new node is created.

    For example,

    example

    Random pointers are shown in red and next pointers in black.

    Try solving now
    03
    Round
    Easy
    Video Call
    Duration40 Minutes
    Interview date6 Sep 2022
    Coding problem1

    There was only 1 interviewer in this round, and We had no video sharing in this round so it was becoming difficult to understand each other.

    1. System Design Question

    OOD question, design a parking lot. Expectation was writing clean readable code using OOD principles. (Learn)

    Problem approach

    Tip 1 : Must have knowledge of LLD/HLD.
    Tip 2 : Good at design patterns.

    04
    Round
    Easy
    Online Coding Interview
    Duration25 minutes
    Interview date10 Sep 2022
    Coding problem1

    1. Basic HR Questions

    Introduce yourself.

    What do you know about the work culture here in Amazon?

    Why should we hire you?

    Where do you see yourself in 3 years?

    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 - 2
    5 rounds | 8 problems
    Interviewed by Amazon
    1865 views
    0 comments
    0 upvotes
    company logo
    SDE - 2
    3 rounds | 4 problems
    Interviewed by Amazon
    2446 views
    0 comments
    0 upvotes
    company logo
    SDE - 2
    5 rounds | 7 problems
    Interviewed by Amazon
    2238 views
    0 comments
    0 upvotes
    company logo
    SDE - 2
    5 rounds | 7 problems
    Interviewed by Amazon
    910 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - 2
    5 rounds | 12 problems
    Interviewed by Walmart
    29892 views
    8 comments
    0 upvotes
    company logo
    SDE - 2
    4 rounds | 7 problems
    Interviewed by Dunzo
    3164 views
    0 comments
    0 upvotes
    company logo
    SDE - 2
    3 rounds | 4 problems
    Interviewed by Samsung
    2588 views
    0 comments
    0 upvotes