Data Structures & AlgorithmsVery hardTCS NQT · Infosys

Five customers arrive together at a bank with 2 tellers. Service times in arrival order are 3, 5, 2, 4 and 6 minutes. Each customer goes to the teller who becomes free earliest. How many minutes until all customers are served?

  1. A. 12
  2. B. 9
  3. C. 11
  4. D. 14

Correct answer: C. 11

Assign each customer to the earliest-free teller in turn; the finish time is the maximum of the two tellers' total busy times, not the sum of all service times.

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

Exams that ask this topic