Amazon | SDE2 | Interview Experience

amazon logo
amazon
SDE II
May 2, 20253 reads

Summary

The candidate successfully interviewed for an SDE2 position at Amazon, navigating through five challenging rounds including Online Assessment, LLD, DSA, HLD, and Bar Raiser, and was ultimately selected.

Full Experience

Round 1: Online Assessment in Hackerrank

Round 2: LLD

Round 3: DSA & Problem Solving

Round 4: HM & HLD

  • 30 mins - LP questions
  • 30 mins - HLD

Round 5: Bar Raiser (DSA & Problem Solving)

Experience:

  • Each rounds are really challening
  • Leadership Principles (LP) questions are asked in every round as they carry equal weight in the final decision.

Verdict: Selected

Interview Questions (6)

Q1
LLD for Alexa Devices with Battery Management
System Design

Consider there are differnt types of alexa devices available. One with audio, one with screen, one with audio and screen. These devices may have a battery or may not. Battery devices will have battery percentage. Both battery and non battery devices can be put charging. The task is to show the battery percentage. Include a show methond and that method should show the current battery percentage if it has a battery. If not just say, battery not available. You should also say whether its currently charging or not. There will four statements to print show method like Charging and battery percentage, charging and no battery, just battery percent and no battery. Expectation is to write interface-driven code using appropriate design patterns

Q2
Height of Tree from Parent Array
Data Structures & AlgorithmsMedium

You need to find the height of a tree given its parent-child relationship in an array where each index represents a node, and the value at that index represents its parent. The root node has a value of  -1. Input: [4, 3, 0, 6, 6, 3, -1, 0] Output: 4

Q3
Customer Checkout Order (Shortest Job First)
Data Structures & AlgorithmsMedium

Customers arrive at different times, and each customer has a different number of items to scan, which determines how long they take at the checkout counter. The store has only one checkout counter, meaning it can serve only one customer at a time. The checkout system follows these rules:

  • If no customers are waiting, the counter remains idle.

  • When the counter is free and multiple customers are waiting, it serves the customer with the fewest items first (shortest checkout time).

  • If two customers have the same number of items, the one who arrived first is served first.

  • Once a checkout begins, it must be fully completed before moving to the next customer.

  • The counter instantly moves to the next available customer once the current checkout finishes.

    Input : You are given an integer n representing the number of customers and a 2D integer array customers, where: customers[i] = [arrivalTimeᵢ, checkoutDurationᵢ]

    Output : Return an integer array of size n, representing the order in which customers will be served.

Q4
Device State Synchronization Service
System Design

A user can have 10 devices maximum. User does an action of turning off light with one device. The action done should be communicated to the rest of devices of the user. Basically design a sync service to maintain all devices are in the same state.

Q5
Find Crypto Numbers in Range
Data Structures & AlgorithmsMedium

Given two integers n and m, find all the crypto numbers in the range [n, m]. A number is called a crypto number if all adjacent digits have an absolute difference of 1. Example: Input: n = 0, m = 15 Output: 0 1 2 3 4 5 6 7 8 9 10 12

Input: n = 20, m = 25 
Output: 21 23
Q6
Max Consecutive Ones III
Data Structures & AlgorithmsMedium
Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!