We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Keep in mind - you have to manage the heap not just in the typical order (pizza cooking time) but also ensure enough time has passed for the order to have taken place. You will have to implement some sort of way to manage the heap to pop the node that has the lowest cook time, but also is a valid order.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Average Waiting Time
You are viewing a single comment's thread. Return to all comments →
Keep in mind - you have to manage the heap not just in the typical order (pizza cooking time) but also ensure enough time has passed for the order to have taken place. You will have to implement some sort of way to manage the heap to pop the node that has the lowest cook time, but also is a valid order.