Ad
  • Custom User Avatar

    In my opinion, this scenario is like a supermarket checkout situation. You would always choose to go to an empty checkout lane, or if all are occupied, you'd pick the lane with the shortest wait time. That's why the function call queueTime(std::vector{2,3,10}, 2) should return 12, not 10.