Algorithm that uses Java PriorityQueue

I was asked to white-board this problem at an interview:

Suppose an event company is planning to serve food to many different groups of people in an event space and the number of tables required must be known and set up before the event. Each group of people will require their own table while they’re eating and will arrive and leave at a predetermined known time. Given a…

Related Posts

Leave a Reply

Your email address will not be published.

© 2023 Code As Pro - Theme by WPEnjoy · Powered by WordPress