The Fake Geek's blog: Ice cream order
Write algorithm to determine the total time to make ice cream and when it leaves the store.Consist of an order time, order number, and ice cream type.
"ice cream Type" is an integer: 0 for combo, 1 for vanilla. Order numbers are increasing.
We have three machines for making ice creams.
It takes 45 seconds to make a combo ice cream and 15 for vanilla. Can only make one ice cream at a time.
Need to determine total time to make ice cream and time the ice cream leaves the store (delivered).
In: order_time,order_num,ice_cream_type
Out: order_num,depart_time,total_time
Read full article from The Fake Geek's blog: Ice cream order
No comments:
Post a Comment