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

SDE - Intern

Amazon
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 8 months
Topics: Data Structures, Competitive Programming, Algorithms, Machine Learning, Deep Learning
Tip
Tip

Tip 1 : Be consistent
Tip 2 : Be dedicated
Tip 3 : Concepts should be crystal clear.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Make projects
Tip 2 : Write only what you know.

Interview rounds

01
Round
Hard
Online Coding Interview
Duration60 minutes
Interview date10 Dec 2020
Coding problem1

1. Two Sum

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

You are given an array of integers 'ARR' of length 'N' and an integer Target. Your task is to return all pairs of elements such that they add up to Target.

Note:

We cannot use the element at a given index twice.

Follow Up:

Try to do this problem in O(N) time complexity. 
Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date23 Dec 2020
Coding problem1

1. Rotting Oranges

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

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
    03
    Round
    Easy
    Video Call
    Duration60 minutes
    Interview date23 Apr 2021
    Coding problem1

    1. Power Set

    Easy
    15m average time
    85% success
    0/40
    Asked in companies
    Paytm (One97 Communications Limited)AdobeGoogle

    You are given a sorted array of 'N' integers. You have to generate the power set for this array where each subset of this power set is individually sorted.

    A set is a well-defined collection of distinct elements. Power set P(ARR) of a set 'ARR' is defined as a set of all possible subsets of 'ARR'.

    You have to return the array of subsets. The elements in the subset should be sorted in ascending order. The order of subsets in the array does not matter. Hence there can be more than 1 possible solution for a given array.

    For example :
    If we are given an array ARR=[1,2,3] then the power set P(ARR) of the set ARR is: [ [], [1], [2], [1,2], [3], [1,3], [2,3], [1,2,3] ]
    
    Note :
    For every subset 'X' present in power set P(ARR) of set ARR, X must be sorted i.e. in the example above:
    P1(ARR) =  [ [], [1], [2], [1,2], [3], [1,3], [2,3], [1,2,3] ]
    P2(ARR) =  [ [], [1], [1,2,3], [2], [1,2], [3], [1,3], [2,3] ]
    P3(ARR) =  [ [], [1], [2], [1,2], [3], [1,3], [2,3], [2,3,1] ]
    P1(ARR) and P2(ARR) will be considered correct power sets but P3(ARR) will not be considered correct because there the last subset [2, 3, 1] is not sorted.
    
    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

    Which operator is used for exponentiation in Python?

    Choose another skill to practice
    Similar interview experiences
    company logo
    SDE - Intern
    3 rounds | 3 problems
    Interviewed by Amazon
    1389 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    3 rounds | 7 problems
    Interviewed by Amazon
    571 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    2 rounds | 3 problems
    Interviewed by Amazon
    576 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    1 rounds | 3 problems
    Interviewed by Amazon
    1302 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - Intern
    4 rounds | 7 problems
    Interviewed by Microsoft
    13095 views
    1 comments
    0 upvotes
    company logo
    SDE - Intern
    3 rounds | 6 problems
    Interviewed by Microsoft
    7620 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    2 rounds | 3 problems
    Interviewed by Google
    5451 views
    1 comments
    0 upvotes