Start with a standard Queue type that offers enqueue and dequeue. Enhance the container that holds multiple queues so it can provide these two operations:
findQueueWithMinSize() — identify the queue, or its position, whose present number of items is lowest.findQueueWithMinSum() — identify the queue, or its position, whose current total of stored values is lowest.Be prepared to explain the supporting data structures you would keep and precisely how enqueue and dequeue change them.
enqueue and dequeue modifies. Evaluation emphasizes the design discussion as well as any code.