amazon logo
Amazon· SDE 1

SDE 1 Amazon Round 1

Posted
11 Apr 2025
246 reads

Summary

I attended the first round of Amazon interview for an SDE 1 role and was asked two specific coding questions. I managed to solve the first question with hints, but ran out of time for the second.

How it went

Hi everyone ,

I attended the first round of Amazon interview for SDE 1 and asked the below questions .

You are initially positioned at the first index of the array arr. In one step you can jump from index i to index i + 1, i - 1 or j where arr[i] == arr[j]. Return the minimum number of steps required to reach the last index of the array.

1, 2, 3, 4, 5, 2, 7 -> 3

You have to build a wall of dimension 3 * N for your house only with the help of stones of dimension 1 * 3. Find the number of ways in which the wall can be constructed.

Able to solve the first question after spending soo much time and after taking the hints from the recruiter .

There was not time for 2nd question to solve . Since I spend most of my time on 1st question .

Questions asked (2)

  1. 01

    Minimum Jumps to Reach Last Index

    Data Structures & Algorithms

    You are initially positioned at the first index of the array arr. In one step you can jump from index i to index i + 1, i - 1 or j where arr[i] == arr[j]. Return the minimum number of steps required to reach the last index of the array.

    1, 2, 3, 4, 5, 2, 7 -> 3

  2. 02

    Ways to Build a 3xN Wall with 1x3 Stones

    Data Structures & Algorithms

    You have to build a wall of dimension 3 * N for your house only with the help of stones of dimension 1 * 3. Find the number of ways in which the wall can be constructed.

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!