You have been given arrival time of orders. There is Talscale Coffee machine which takes order from customer in certain conditions: 1. In 1second, orders should not exceed more than three
2. At any given 10 second slot, orders must not exceed more than 20
3. At any given 100 second slot, orders must not exceed more than 100.
You have to tell how many orders talscale coffee machine rejected ?
eg :-input: 4 ,[1,1,1,1]
output: 1
explanation : 4 orders came in first second so last request has been rejected
Answers
Answered by
0
Answer:
Not able to understand your question
Answered by
0
Answer:
10+10+20+100 = 500÷4 =
Explanation:
This is the answer
Similar questions