Data Structures & AlgorithmsHardTCS NQT · Accenture

Customers arrive at times 0, 1, 2 and 5 and need service times 3, 2, 1 and 2 on a single server (first come, first served; a customer starts when both arrived and the server is free). At what time does the last customer finish?

  1. A. 9
  2. B. 8
  3. C. 10
  4. D. 12

Correct answer: B. 8

The finishes are 3, 5, 6 and 8: each customer starts at the later of its arrival time and the previous finish.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic