Amazon Interview Question for Software Engineer / Developers
- 1of 1 vote
You are given a huge log file which holds the entry and exit time of each person entering and exiting the office on a given day- evolution monkey June 03, 2012 in United States
format of file:
entry time exit time
.upto N entries for a given day
Design a function which returns the total number of persons in the office at any given time. e.g input to function is 11:05:20.
The interviewer said he could call the function every second with input 11:05:20, 11:05:21,11:05:22, 11:05:23..........14:30:30
I really did not understand how to optimize the function.
| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm
Interview Type: In-Person
Open Chat in New Window