Average Waiting Time at Amazon
Medium73.1% acceptance
This problem has 12.5% frequency at Amazon.
Problem Description
There is a restaurant with a single chef. You are given an array `customers`, where `customers[i] = [arrivali, timei]:` * `arrivali` is the arrival time of the `ith` customer. The arrival times are sorted in **non-decreasing** order. * `timei` is the time needed to prepare the order of the `ith...
Read full problem and hintsTopics
Also asked at 5 companies
More Amazon Questions
Two SumEasyTrapping Rain WaterHardBest Time to Buy and Sell StockEasyNumber of IslandsMediumMedian of Two Sorted ArraysHard
View all Amazon questions