Amazon Interview Question
SDE1sCountry: United States
Interview Type: Phone Interview
Hey! I have few doubts on how you wrote this algorithm . Because I want to know on how you decided few things:-
1) sorting the time intervals based on startTime
2) Why are you doing binarySearch for startTime
3) what are takenRooms and available that you have mentioned in your code
Iam a guy who is crazy about programming but Iam confused on how you came up this algorithm . Could you explain please ? Anyway sorry for disturbing you
- lx3 August 07, 2016