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.
The statement is misleading. It lacks the option that the pizza shop can wait. Like this test case,
2
0 5
1 1
The minimum waiting time is (1+7)/2 = 4 instead of (5+5)/2 = 5. Although it's unreasonable that let the first customer wait.
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 →
The statement is misleading. It lacks the option that the pizza shop can wait. Like this test case, 2 0 5 1 1 The minimum waiting time is (1+7)/2 = 4 instead of (5+5)/2 = 5. Although it's unreasonable that let the first customer wait.