Last active
August 29, 2015 14:20
-
-
Save vike27/a9b750cbd2298c151bf5 to your computer and use it in GitHub Desktop.
Hotel Bag Check-In Problem Set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write a program for managing locker reservations at a hotel concierge desk. | |
Customers leave bags with the concierge, who then uses your program to determine | |
in which locker to place the bag. The program tells the concierge the number of | |
the locker in which to place the bag, and prints a ticket to give to the customer. | |
Upon return, the customer provides the ticket, and the concierge uses that to | |
look up the corresponding locker, retrieve the bag, and return it to the customer. | |
There are 1000 small lockers, 1000 medium sized lockers, | |
and 1000 large lockers (it’s a big Vegas hotel). You can assume that all | |
checked bags fit into one of these three sizes. The program should | |
always assign the smallest available locker that fits the bag. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
note * need to copy solution here sometime