amazon logo
Amazon· SDE 1

Amazon Interview Experience | SDE 1 | Round 1

Posted
11 Jul 2025
278 reads

Summary

I successfully solved and explained 'Fruit Into Baskets' within the expected time. For 'Online Stock Span', I managed to implement a working solution but missed the optimal approach due to time constraints.

How it went

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 cant able to optimse the 2nd one.

Questions asked (2)

  1. 01

    Fruit Into Baskets

    Data Structures & Algorithms

    The problem 'Fruit Into Baskets' was asked. Refer to the provided LeetCode link for the full problem description.

    Open the problem
  2. 02

    Online Stock Span

    Data Structures & Algorithms

    The problem 'Online Stock Span' was asked, with a slight modification: an array was given directly instead of elements one by one. Refer to the provided LeetCode link for the original problem description.

    Open the problem

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Amazon recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

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