You have a log file containing the entering and leaving time of each employee in the factory. Given a query time (a floating number), write a function to count how many employees in the factory.
001 0.14 0.15
002 0.32 0.60
003 0.25 0.80
Question 1: Assume that the log file is too large to fit into memory, write a function with the following signature to return the count.
Read full article from Microsoft Interview Questions: Number of Employees in the factory | Yaozong's Blog