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 hints

Topics

Also asked at 5 companies


More Amazon Questions

View all Amazon questions