Pretend you work for a phone company. At your company, you have a
satellite that routes phone calls. We want to bill customers by the
maximum number of simultaneous phone calls they make in a single day.
(After asking clarifying questions I received the following
information: assume no calls last more than 24 hours and that at
midnight each night all the calls are automatically dropped. In the
event that one call ends as soon as another starts, answer part 2 of
this question in such a way as to maximize revenue).
What information should the satellite store for each phone call?
Define a data structure for this (e.g. write a struct).
Write a function that finds the maximum number of simultaneous phone
calls from a given customer. (Hint: typical solution is O(nlogn), but
if you use an absurd amount of memory like I did, it can be done in
O(n)).


Thanks
Shashank

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to