Amazon OA Questions
Anonymous User
4959

Giving back to the community.
I just passed my amazon OA for SDE 2 (L5)
The questions I got was a variation the robot one using 'L', 'R', 'G' to see if it is going in a circle
(left, right, forward)

The second question I got was a variation of the flight duration. Where we are given a list of movie times and they want to find a combination of 2 movies that was 30 minutes less than total duration.
This one was relatively eash as I simply used a hashtable.

I passed all my test cases. There was an edge case with the robot one where if the size of the commands is 3 and they contain all 'L', 'R', 'G' commands.

Comments (3)