AMAZON SDE II Interview
- Location
- Bangalore, India
- Posted
- 20 Oct 2026
Summary
I attended an Amazon SDE II onsite interview in Bangalore where I was asked two coding problems (Course Schedule II and a variation of the Climbing Stairs problem) but struggled to code on the spot and was unable to solve the final Aggressive Cows‑like question, resulting in an unsuccessful outcome.
How it went
R1 45mins
- Course Schedule II
- Variation of Climbing Stairs question
Applied on Carrer poral, got interview onsite (bangalore Bagmane office),
interviewee asked if you want to code on pen paper or laptop
solved 2nd but, knew how to solve 1st but could,nt code onspot
Please revise graphs before going on Amazon interview
also this is the 2nd amazon inteview I have given in within 2month both different teams
before that it was virtaul and around 4-5 questions were asked it was also 45mins but interviee said don't need to code it just tell the approach verbally, all the questions were medium (sliding window problems, and linked list etc)
he was just asking question, then the optimization then moving to the next question, no hints nothing
the last question I remember it was similar to Aggressive Cows, I could'nt tell how to solve it so the interview endded there (I guess it was screening interview, not sure)
I guess Amazon is hiring aggresivly
Questions asked (3)
- 01
Course Schedule II
Data Structures & Algorithms · Medium
Given the total number of courses and a list of prerequisite pairs, return an ordering of courses you should take to finish all courses. If it is impossible, return an empty list.
- 02
Climbing Stairs Variant
Data Structures & Algorithms
A variation of the classic climbing stairs problem where the number of steps you can take at a time may differ or additional constraints are applied.
- 03
Aggressive Cows (variant)
Data Structures & Algorithms
Place C cows in N stalls such that the minimum distance between any two cows is maximized. Determine the largest possible minimum distance.