Amazon Interview Question for Software Engineer / Developers
- 2of 2 votes
Assume I have a log file with list of people with their arrival and departure time at an event that happened in the past.- Bevan March 02, 2013 in United States
My task is to find out the maximum number of people present at any time during the entire event? I am not given query time.
ai = Arrival time of person i
di = Departure time of person i
I have a list of pairs like (a1,d1), (a2,d2), (a3,d3).... (an,dn)... It's not in a database.
I apologize as I cannot edit my previous question. I think it had a incomplete description.
Please let me know if you guys still need clarification. Thanks
| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm
Open Chat in New Window