Amazon Interview experience Hydrabad India

Anonymous User
3
May 13, 2024

I was reached out by the recurter on the linkedIn.
After I shared my resume she shared the online assesment link.

There were 2 questions in the assesment.
a) I would consider this easy

1. Find the number of vehicles needed if given X tiers. There are only 2 types of vehicles ("Car", "Bike"), car has 4 tires and bike has 2 tires. 
 examples
	1. Tires 4 then answer would be 2 pairs(1. Just Car, 2. Bike, bike)
	2. Tires 5 then answer would be 0 because you can not make any pairs. 

b) This one was medium level question

2. Given a plane find the optimal path for it. When 2 arrays are given, array 1 has outgoing distance and array 2 has incoming distance. 
	This is an example of maximize the minimum or minimise the maximum. Binary search question.

After this I got a call for 2 DSA rounds

First Round.
Interviewer copy pasted 1 medium and 1 Hard level question from leetcode and expected me to solve it in 45 mins.

Medium: https://leetcode.com/problems/meeting-rooms-ii/description/
I was able to solve optimally medium level question and

Hard: https://leetcode.com/problems/count-stepping-numbers-in-range/description/
I was able to come up with an optimal approach for the hard question but did not code it.

Second Round.
Same as round 1 the interviewer copy pasted 1 medium and 1 hard level question from leetcode and expected me to solve it in 45 mins.

Hard: https://www.geeksforgeeks.org/problems/allocate-minimum-number-of-pages0937/1
**Note: this is lablled as medium but if you have never solved this question pattern before its really hard to solve it in 20 mins. **
I was not able to solve hard question(I came close to the solution, mentioned by the interviewer)

Medium: https://leetcode.com/problems/longest-zigzag-path-in-a-binary-tree/description/
coded medum question with optimal solution.

Takeaway: Do a lot of problems from leetcode and try to cover almost all type of questions.

Comments (0)