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
Preparation
Duration: 6 Months
Topics: Problem solving using Data Structures and Algorithm, Operating System, Computer Networks, Database Management System
Tip
Tip

Tip 1 : Regarding DSA preparation, I have a theory. 20 percent of the questions will be asked in 80 percent of the interview and 80 percent of the questions will be asked in 20 percent of the interviews. In short, some questions have a very high chance of coming up during the interviews and some have very low chance. We should focus more on the questions that have more chance of coming up in the interview. You can find these questions on Striver SDE Sheet, InterviewBit, Leetcode 100 most liked, Leetcode 100 most important.
Tip 2 : Try to find patterns in the questions. Group them according to a pattern for better understanding. Make notes in Excel, word or hand written and revise them.
Tip 3 : Try to solve the questions that have more chance of coming up in the interview with many different approaches.

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

Tip 1 : Don't have summary, career goals, hobbies in your resume. 
Tip 2 : Mention coding profile links. Do internships, participate in hackathons and make projects to enhance your resume. Have a good Linkedin profile. Linkedin is the new resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration135 Minutes
Interview date16 Nov 2021
Coding problem2

It was a online coding round with 7 debugging questions and 2 coding questions. There was also an additional HR assessment at the end but i dont think it has any weightage. HR assessment has real life situations and you need to tell how you would react. I would suggest just go with your instincts. In some questions, there is no right or wrong answer. Just answer all the questions with the same philosophy. Dont give contradicting answers.

1. Binomial Coefficient Problem

Easy
15m average time
85% success
0/40
Asked in companies
HSBCAmazon

A Ninja was learning how to calculate the binomial coefficient. But, learning that alone won’t help the ninja since a lot of problems are required to be solved as homework. Since the ninja is old-fashioned and doesn’t know that a computer can do the same homework in a matter of a few seconds you will have to help with the problems.

You need to complete a function for the ninja that can calculate the binomial of a number where when given two integers 'N' and 'R', the program can calculate its respective binomial coefficient nCr. Since the answer may be very large, calculate the answer modulo 10^9 + 7.

For Example:
Input: 'N' = 5, 'R' = 2
Output: 10

The value of 5C2 is 10
After taking the modulo with 10^9 + 7 we get 10.
Try solving now

2. Largest sub-tree sum

Easy
15m average time
85% success
0/40
Asked in companies
OlaAmazonGoogle inc

You have been given a Binary Tree of integers. You are supposed to return the largest subtree sum in the given Binary Tree.

The subtree sum of a node is defined as the sum of all the node values formed by the subtree rooted at that node (including the node itself).

Example :
For the given binary tree:

Example

Subtree with the largest sum is highlighted in the above image. The sum is (-2 + 4 + 7) = 9
Try solving now
02
Round
Medium
Video Call
Duration45 Minutes
Interview date16 Dec 2021
Coding problem2

Interviewer was really friendly. He asked me some questions on my resume just to break the ice. he made it clear that we will be solving 2 coding questions along with code and some followups.

1. XOR Query

Hard
45m average time
60% success
0/120
Asked in companies
AmazonProtiumNokia

You are given a tree(root 0) with N vertex having N - 1 edges. You are also given an array ‘QUERY’ of size ‘Q’, where each query consists of an integer that denotes a node. You have to print the xor of all the values of nodes in the sub-tree of the given node.

Note:

Here XOR denotes the bitwise operator (^).
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
    03
    Round
    Hard
    Video Call
    Duration45 minutes
    Interview date16 Dec 2021
    Coding problem2

    I got a call for second round on the same day. Interviewer was really friendly. He asked me some questions on my projects and my past internships. He didnt ask much technical questions but wanted to know my learnings.

    1. Connect N Ropes With Minimum Cost

    Easy
    20m average time
    80% success
    0/40
    Asked in companies
    ArcesiumUberOptum

    You have been given 'N' ropes of different lengths, we need to connect these ropes into one rope. The cost to connect two ropes is equal to sum of their lengths. We need to connect the ropes with minimum cost.

    The test-data is such that the result will fit into a 32-bit integer.

    Problem approach

    Step 1 : Give brute force backtracking solution
    Step 2 : Give min heap solution

    Try solving now

    2. Maximum In Sliding Windows Of Size K

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

    Given an array/list of integers of length ‘N’, there is a sliding window of size ‘K’ which moves from the beginning of the array, to the very end. You can only see the ‘K’ numbers in a particular window at a time. For each of the 'N'-'K'+1 different windows thus formed, you are supposed to return the maximum element in each of them, from the given array/list.

    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
    2162 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
    1042 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    1 rounds | 3 problems
    Interviewed by Amazon
    3501 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - Intern
    4 rounds | 7 problems
    Interviewed by Microsoft
    15499 views
    1 comments
    0 upvotes
    company logo
    SDE - Intern
    3 rounds | 6 problems
    Interviewed by Microsoft
    8186 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    2 rounds | 4 problems
    Interviewed by Microsoft
    4914 views
    2 comments
    0 upvotes