Event Time

Problem Overview

  • Determine each attendee's ID-check finish time at an event, or note if they leave immediately.
  • Input: array of arrival times (seconds from 0); Output: array of finish times, or arrival time if they leave.
  • Each check takes 300 seconds; if more than 10 are waiting (excluding the one being checked), newcomers depart.
  • For simultaneous arrivals, those with fewer people ahead go first; a Ziprecruiter interviews coding interview problem and interview question.

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: