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

SDE - 1

Amazon
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Geeks for geeks, Tutorial, Leetcode, Hackerank, Youtube
Tip
Tip

Tip 1 : Try to solve as much as the problem you can
Tip 2 : Do not try to copy code instead of writing a code in an optimized way
Tip 3 : Learn --> understand problem--> develop Logic ---> then do code

Application process
Where: Hackerrank
Eligibility: 6 CGPA, NO Active backlog, Hands on C++ or Python
Resume Tip
Resume tip

Tip 1 : Include your Practical Projects and About your git hub repository
Tip 2 : Include that thing only that you can answer

Interview rounds

01
Round
Medium
Online Coding Test
Duration70 Minutes
Interview date11 Jan 2022
Coding problem2

It included 15 MCQs and 2 coding questions, and it was a screening round as they are actively recruiting so there were only 2 rounds not more than that.

1. Clone a Linked List with random pointers

Easy
0/40
Asked in companies
ThalesAmazonQualcomm

You are given a linked list containing 'n' nodes, where every node in the linked list contains two pointers:


(1) ‘next’ which points to the next node in the list

(2) ‘random’ which points to a random node in the list or 'null'.


Your task is to create a 'deep copy' of the given linked list and return its head.


Note:
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.


Problem approach

In the first pass, create a copy of the original linked list. While creating this copy, use the same values for data and arbitrary_pointer in the new list. Also, keep updating the map with entries where the key is the address to the old node and the value is the address of the new node. Once the copy has been created, do another pass on the copied linked list and update arbitrary pointers to the new address using the map created in the first pass. Learn in-demand tech skills in half the time.

Try solving now

2. Sort Linked List

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

You are given a Singly Linked List of integers which is sorted based on absolute value.

You have to sort the Linked List based on actual values.

The absolute value of a real number x, denoted |x|, is the non-negative value of x without regard to its sign.

Example:
If the given list is {1 -> -2 -> 3} (which is sorted on absolute value), the returned list should be {-2 -> 1 -> 3}.
Problem approach

I gave the solution of merge-sort on the linked list. Given that to prepare a certain ingredient we may require another ingredient i.e. To prepare ingredient A we require ingredient B.(A -> B) To prepare ingredient B we require ingredient C.(B -> C) To prepare ingredient C we require ingredient A.(C -> A)

Try solving now
02
Round
Medium
HR Round
Duration50 minutes
Interview date16 Mar 2022
Coding problem1

This round is a mixed-up round, not a coding round. there were two-person one is hr and one is technical, Technical person asked me about data structure and algorithms mainly.

1. 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

    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
    3084 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    4 rounds | 8 problems
    Interviewed by Amazon
    2294 views
    1 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 6 problems
    Interviewed by Amazon
    1592 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