Amazon Interview Experience (Aug 2025)

519
Aug 22, 2025

Amazon Interview Experience : (Aug, 2025)

OA :

  1. We are given n servers, with their individual capabilities. We are given n operations where we change the capability of one of the servers, we need to find out the new capability of the entire system.

Capability of the entire system = Total Sum of Capabilities of all the servers.

server = [1,2,4,5]

Operations : [1, 4] (Means we change the capability of 1st server from its previous value to 4)

We need to tell whether the system capability after the nth operation would be greater than a threshold or not.

Expected TC : O(n).

  1. I do not remember exactly. It was about forming the largest ring of numbers, given that the difference between two consequetive number should be lesser than or equal to 1. Don't remember the test cases for this.

I was able to solve 1st and 60% test cases of 2nd.

Round 1 (DSA) :

  1. We are given a 2d array representing dependencies of tasks. But each task is also given a numeric priority. We need to give order of tasks, if two tasks have the same priority, then task with lower id should be executed first.

This is a typical Topo Sort, but with the twist of a pq.

I solved this comfortably within 15 mins.

  1. We are given some strings. we get a new string, we need to tell the next greater lexicographic string in the given set.

I gave multiple solutions to the problem, including binary search, but the interviewer was adamant on Trie based solution. I gave the idea, but was not able to code within the given time.

:(

verdict : rejected :(

Comments (5)