Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Why does this always work? could you explain?
Till means counter or cashier. I'll draw them here
example:
int customers2[] = {10, 2, 3, 3}; //each clients with different duration of transaction
int customers2_length = 4; //number of clients
int n2 = 2; //number of tills
there are 2 tills or cashiers and there are 4 clients so this is my illustration
the first two clients 10, 2 are on the till/counter and the other clients 3,3 is waiting for their turn.
now you must solve the time consumed in order for all of them to finish the transaction.
in this example the output should be 10.
because 2 will be finished in 2 minutes and then next is 3 after 3 minutes the last client 3 will follow. 2 + 2 + 3 = 7 minutes
on the other hand the client 10 is not finished yet and still on the counter so the time consumed for them to finish is 10 minutes.
I hope you understand. GL!
Think about yourself being at the supermarket where there are n self-service check-outs, and a line of customers, where you know how long time it takes for each customer. How long time does it take in total for all customers to check out? That's it.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It even says product in the snippet you gave us. The notes explain everything.
But where in the problem does it state that ? "each Two integers product " seems rather ambiguous tbh
But maybe I'm just not used to code war problems
Perhaps because the tasks aren´t that hard (python). Just copy the code and run it line by line with printing each new part. Best practice would be with a comment.
Why does nobody comment on their solutions at all?
Read the instructions again, it's not 5 + 4 + 2 + 3 what you have to do, where are the products there?
This comment is hidden because it contains spoiler information about the solution