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

SDE - 1

Amazon
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 5 months
Topics: Data Structures, OOPS, DBMS, System Design, Operating Systems
Tip
Tip

Tip 1 : Maintain a Schedule
Tip 2 : Practice Leetcode consistently
Tip 3 : Have through knowledge of your projects

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

Tip 1 : Have thorough knowledge of the projects you have mentioned
Tip 2 : Do not put false things on resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration145 minutes
Interview date23 Jul 2021
Coding problem3

It was an online assessment conducted on Amcat Platform. The assessment consists of four components, a code debugging section - 7 questions (20 minutes), a coding test - 2 questions (70 minutes), a workstyles assessment - basic behavourial questions (20 minutes) and a reasoning ability section - 24 questions (35 minutes).

1. Sort Items By Group

Moderate
20m average time
85% success
0/80
Asked in companies
AmazonMAQ SoftwareNagarro Software

You are given ‘N’ items. Each item either doesn’t belong to any group or belongs to exactly one group out of ‘M’ groups. For each item, you are also given a list, ‘BEFORE’, containing items that should appear before this item in the final sorted list.

Your task is to sort these items in an order which follows the following rules :

The items belonging to the same group must be ordered adjacent to each other.
The item which does not belong to any group can be placed anywhere. 
Each item appearing in BEFORE[i] must be placed before the ith item in the sorted list.
Try solving now

2. NINJAS TRUCK

Easy
15m average time
85% success
0/40
Asked in companies
WalmartAmazonLivekeeping (An IndiaMART Company)

Ninja is assigned a task to deliver some boxes which contain different units having different weights. With the help of his truck, he will earn money on the basis of the number of units of boxes he will deliver by his truck. Ninja truck has some capacity on the number of boxes he can put on his truck.

So your task is to find a way so that ninja will choose boxes in a way that units will be maximum and he would be able to get more money you will be provided with an array of ‘BOX’, where BOX[i] = [countofBoxes, unitsperBox].

CountofBoxes represents the number of boxes of the same type i.e containing the units of the same value.

UnitsperBox represents the number of units in the box or we simply say that unit value.

And an integer ‘K’ denoting the limit of boxes on the truck.

Try solving now

3. Pair Sum

Easy
15m average time
90% success
0/40
Asked in companies
Media.netExpedia GroupQuikr

You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to return the list of all pairs of elements such that each sum of elements of each pair equals 'S'.

Note:

Each pair should be sorted i.e the first value should be less than or equals to the second value. 

Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date28 Jul 2021
Coding problem2

The interviewer asked two datastructure questions.

1. Remove Duplicates From Sorted List

Easy
0/40
Asked in companies
AdobeAppleAmazon

A doubly-linked list is a data structure that consists of sequentially linked nodes, and the nodes have reference to both the previous and the next nodes in the sequence of nodes.


You are given a sorted doubly linked list of size 'n'.


Remove all the duplicate nodes present in the linked list.


Example :
Input: Linked List: 1 <-> 2 <-> 2 <-> 2 <-> 3

Output: Modified Linked List: 1 <-> 2 <-> 3

Explanation: We will delete the duplicate values ‘2’ present in the linked list.


Try solving now

2. Rotting Oranges

Moderate
30m average time
85% success
0/80
Asked in companies
AmazonSoroco
You are given an integer grid of size ‘N’x’M’, and the cell of the grid contains either of the three values:

  • 0 - An empty cell.
  • 1 - A fresh orange.
  • 2 - A rotten orange.
  • Every minute, any fresh orange adjacent(4-directionally) to a rotten orange becomes rotten.

    You must return the minimum time after which no fresh oranges are left. Return -1 if it's impossible to rot all the fresh oranges.

    Example:
    Input: [[2,1,1],[1,1,0],[0,0,0]]
    
    Output: 2
    
    At T=0, only orange at (0,0) is rotten.
    At T=1, oranges at (0,0),(0,1) and (1,0) are rotten.
    At T=2, oranges at (0,0),(0,1),(1,0),(0,2) and (1,1) are rotten. 
    No fresh oranges are left after T=2.
    
    Try solving now
    03
    Round
    Easy
    Face to Face
    Duration60 minutes
    Interview date28 Oct 2021
    Coding problem2

    2 coding questions and few behavorial questions for one hour

    1. Add Two Numbers As Linked Lists

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

    You are given two non-negative numbers 'num1' and 'num2' represented in the form of linked lists.


    The digits in the linked lists are stored in reverse order, i.e. starting from least significant digit (LSD) to the most significant digit (MSD), and each of their nodes contains a single digit.


    Calculate the sum of the two numbers and return the head of the sum list.


    Example :
    Input:
    'num1' : 1 -> 2 -> 3 -> NULL
    'num2' : 4 -> 5 -> 6 -> NULL
    
    Output: 5 -> 7 -> 9 -> NULL
    
    Explanation: 'num1' represents the number 321 and 'num2' represents 654. Their sum is 975.
    


    Try solving now

    2. Unique Paths II

    Moderate
    25m average time
    70% success
    0/80
    Asked in companies
    AmazonD.E.ShawQuinstreet Software

    Given a ‘N’ * ’M’ maze with obstacles, count and return the number of unique paths to reach the right-bottom cell from the top-left cell. A cell in the given maze has a value '-1' if it is a blockage or dead-end, else 0. From a given cell, we are allowed to move to cells (i+1, j) and (i, j+1) only. Since the answer can be large, print it modulo 10^9 + 7.

    For Example :
    Consider the maze below :
    0 0 0 
    0 -1 0 
    0 0 0
    
    There are two ways to reach the bottom left corner - 
    
    (1, 1) -> (1, 2) -> (1, 3) -> (2, 3) -> (3, 3)
    (1, 1) -> (2, 1) -> (3, 1) -> (3, 2) -> (3, 3)
    
    Hence the answer for the above test case is 2.
    
    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 - 1
    3 rounds | 5 problems
    Interviewed by Amazon
    3085 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    4 rounds | 8 problems
    Interviewed by Amazon
    2295 views
    1 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 6 problems
    Interviewed by Amazon
    1593 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    4 rounds | 8 problems
    Interviewed by Amazon
    8962 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - 1
    4 rounds | 5 problems
    Interviewed by Microsoft
    58238 views
    5 comments
    0 upvotes
    company logo
    SDE - 1
    4 rounds | 8 problems
    Interviewed by Samsung
    12649 views
    2 comments
    0 upvotes
    company logo
    SDE - 1
    4 rounds | 8 problems
    Interviewed by Microsoft
    5983 views
    5 comments
    0 upvotes