Estimated Wait Time at Support

Medium ⏱ 12 min 55% acceptance ★★★★★ 4.8
Write wait_minutes(position, agents, avg_handle_min) estimating a caller's wait: with agents working in parallel and position callers ahead, the caller starts after ceil(position / agents) service rounds of avg_handle_min each. Position 0 waits 0. Use math.ceil.

Examples

Example 1
Input
wait_minutes(7, 3, 4)
Output
12
Explanation

ceil(7/3)=3 rounds × 4 minutes.

Constraints

  • Zero position → 0 regardless.
  • agents >= 1.

Topics

Business Logicqueueing

Companies

ZendeskFreshworksOzonetel

Hints

Hint 1

Rounds, not per-caller minutes, is the model.

Hint 2

math.ceil(position / agents).

Loading the Python runtime… Run executes your code and shows printed output; Submit checks your function against this problem's examples.