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.
Hello cirorizzo,
If I did understand, you are asking for
((((()()())))()()()()))))())()()()
? (nested parenthesis)Did you mean that? If not let me know!
Best,
TDRS
Nice solution!
Using nested parenthesis could help to make it a bit more complex
Gotcha!
The sort is made on any cycle!
Smart!
Thanks for the clarification!
The array result has been sorted such that the value in the first index represents the cashier with the shortest line. Because this is a greedy algorithm, the optimal solution involves adding this next customer to the shortest line (time wise). Does that help?
This comment is hidden because it contains spoiler information about the solution