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.
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.
Looks like hackerrank sets the difficulty level in terms of misleading and ambiguous statements.