Amazon SDE-1 Loop Interview, Banglore

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-03-22Added By Anonymous
Source: Link

Company: Amazon
Role: SDE I
Interview Stage: Onsite
Location: Bangalore
Year: unknown

Original Post Content:

This Interview took place offline in Bangalore. Basically They mentioned there'll be three rounds, each one being elimination round.

Round 1:

Question 1: Interviewer asked me question on multisource bfs which is just a variation of the https://leetcode.com/problems/rotting-oranges/description/.

I gave him two approaches, using BFS with extra space, and another with constant space. Did dry run and wrote the code and got verified.

Question 2: The question asked was this, https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards/description/ but in a different way. I right away said greedy approach doesn't work and gave test case where it doesn't.

So, I gave a recursive solution, and then applied memoization to it, But the optimal solution was using Sliding window. Although he had positive opinion of my approaches as I even tried to do that with prefix-sufix sum. I was qualified for the second round.

Due to the non-availability of panel, as time was around 4.30 they called me and said I'll be having an interview online in the coming week.

I'll update once done with the other interview, I hope I'll try to ace the other two rounds.

Comments