Lamps and Control Points

Problem Overview

  • Determine the exact time when the final guest finishes ID check given limited entry capacity and per-guest durations.
  • Input: number of guests, queue capacity, and each guest’s processing time; output: completion time of the last guest under capacity limits.
  • Real-world domain: event check-in queue management with variable verification times.
  • From Ziprecruiter interviews; a coding interview interview question and scheduling/queueing problem.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: