I applied online. I interviewed at Amazon (Hyderabad) in Apr 2025
Interview
The interview started with my interviewer (SDE - II) introducing himself and asking me to do the same.
We then moved on to two leetcode questions -
1. Tree based
2. Permutation/Combination
Also, asked about one of my projects that I mentioned in introduction as 5 minutes were left.
Interview questions [2]
Question 1
At Amazon,
our delivery route optimization often involves tree-like structures.
Here's an interesting problem that reflects
similar patterns:
Given a binary tree where:
Each node contains a single digit (0-9)
Each path from root to leaf represents
a number
For example: path 4+2+1 represents number 421
Write a function to compute the sum of all numbers represented by root-to-leaf paths.
Input: root - [1,2,3]
1
2 3
Output: 25
Input: root - [4,9,0,5,1]
Output: 1026
4
9. 0
5. 1
Q2 -
Amazon is developing a new word game where players rearrange letters within words while maintaining the structure of the phrase.
The game has an interesting scoring system based on valid arrangements.
Game Rules:1. Players receive a phrase where words are separated by single spaces2.
Players can shuffle letters within each word, but can't move letters between words
3. Word order must stay the same4. The goal is to find all possible unique arrangements For example, if a player gets the phrase
"code jam":
- They can create "eocd maj" (valid - letters shuffled within each word)
- They cannot create "jam code" (invalid - word order changed)
- They cannot create "codj ame" (invalid - letters moved between words)
Challenge:
You're part of the game development team, and you need to create a function that calculates how many different valid arrangements are possible for a given phrase.
Since this number can be very large, return the result modulo 10^9 + 7.
Can you help create an algorithm that counts all possible valid arrangements?
I applied through college or university. I interviewed at Amazon
Interview
1 interview of 1 hour, initial 20 minutes are behavioral and remaining is for technical. got asked a medium LC question similar to LRU Cache but with an example. Before interview got an OA, following that got the interview
Interview questions [1]
Question 1
1 interview of 1 hour, initial 20 minutes are behavioral and remaining is for technical. got asked a medium LC question similar to LRU Cache but with an example.
I applied online. I interviewed at Amazon (Madrid) in Nov 2024
Interview
One Hackerrank assesment - Easy/Medium level leetcode
Only one interview after that which was an hour - 30 min Behavioural questions based on my previous experiences and 30 min easy coding task