There are n number of conference rooms available in a company for meetings. You need to book a meeting for a particular time slot. Write an algorithm to determine the number of conference rooms available for the meeting with given start time and end time.
Hint: any conference room with non- overlapping meeting will be selected.
I was thinking segment trees can provide O(logN) for this, but not sure thats the best approach