Maintain Positions in a Changing Queue

A parcel-wrapping desk uses First Come - First Served, giving priority to the earliest arrival still waiting. The desk is paused until 09:00, so no job starts during the events below.


Job

Initial arrival

Larch

08:40

Maple

08:43

Pine

08:46

Rowan

08:49


A cancellation removes the job immediately. Under the desk's stated policy, a resubmitted job receives a new arrival time and does not recover its former position.


Complete Rowan's and Maple's waiting positions immediately after each event. Position 1 means first in the waiting queue. Enter an exact integer, or absent if that job is no longer waiting.

EventRowan positionMaple position
08:50 Larch cancels
08:52 Cedar arrives
08:54 Maple cancels
08:56 Maple is resubmitted
08:58 Pine cancels

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More First Come - First Served Questions: