amazon logo
Amazon· SDE-2

Recent asked question in Amazon SDE-2

Posted
24 Feb 2026
342 reads

Summary

I had a 30-45 minute coding round for an SDE-2 position at Amazon's internal team, where I was asked a binary search variation. I successfully solved it and discussed the role, and I'm awaiting my next LLD/HLD and Hiring Manager rounds.

How it went

Hi everyone, I had an opportunity with Amazon's internal team, for SDE-2 position, generally there are 2-3 rounds for an Internal job or team change.

The first was the coding round, for about 30-45 mins.

Therefore, I have been asked a variation of binary-search question, initially, i was asumming the greedy approach might work, but it didn't for a certain examples.

So, I went ahead with binary-search, the interviewer was alinged on this, and i was quickly able to solve in under 30 mins.

We had a great discussion for 10 mins, about the role & the work.

I found the only drawback is the on-call rotations.

My next set of interview rounds are LLD/HLD & Hiring manager round.

Stay tuned.

Questions asked (1)

  1. 01

    Minimum Time to Resolve Bugs

    Data Structures & Algorithms · Medium

    You are given:

    • timeTaken[i] → time required by person i to resolve 1 bug
    • bugs → total number of bugs
    • All people work simultaneously

    Return:

    The minimum time required to resolve at least bugs bugs.


    🧠 Core Intuition

    If a person takes t hours per bug, then in T hours they can resolve:

    T / t   (integer division)
    

    So total bugs resolved in T hours:

    total = Σ (T / timeTaken[i])
    

    We need the smallest T such that:

    total >= bugs
    

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!