Amazon Interview Experience | SDE 1 | Round 1

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-07-11Added By Anonymous
Source: Link

Company: Amazon
Role: SDE 1
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

Problems Asked:

1. Fruit Into Baskets

2. Online Stock Span - question asking was slight changed, direct given an array instead of each element everytime

I was able to solve and clearly explain the first problem (Fruit Into Baskets) within the expected time. For the second problem (Online Stock Span), I managed to implement a working solution under time pressure. However, the interviewer was expecting a more optimized approach. I realized the optimization (likely using a pair of stack, instead of int of stack) just as we were running out of time. So couldn't optimize the 2nd one.

Comments