Amazon Interview experience Hydrabad India

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-05-13Added By Anonymous
Source: Link

Company: Amazon
Role: sde ii
Interview Stage: Phone Screen
Location: Hyderabad, India
Year: unknown

Original Post Content:

I was reached out by the recruiter on LinkedIn. After I shared my resume, she shared the online assessment link.

There were 2 questions in the assessment.

a) I would consider this easy:

1. Find the number of vehicles needed if given X tires. 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 cannot make any pairs.

b) This one was a 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 minimize 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 the medium level question.

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 labeled as medium but if you have never solved this question pattern before it's really hard to solve it in 20 mins. I was not able to solve the hard question (I came close to the solution, as mentioned by the interviewer).

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

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

Comments