Average Waiting Time at Instacart
Medium73.1% acceptance
This problem has 87.5% frequency at Instacart.
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 Instacart Questions
Check if Every Row and Column Contains All NumbersEasyFind First and Last Position of Element in Sorted ArrayMediumSquares of a Sorted ArrayEasyFind the Length of the Longest Common PrefixMediumMaximum Number of Events That Can Be AttendedMedium
View all Instacart questions