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.
Good task! It is very important to read carefully here. The first time was not attentive. The elevator stops for all calls, even if there is no room and no one gets out - it turns out this is important!
Thank You!
Read Kaboms's post below.
Wrong tests.
It is map of floors:
[[], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
Capacity is 5
My lift is:
[0, 6, 5, 0, 5, 4, 0, 4, 3, 0, 3, 2, 0, 1, 0]
Test lift is:
[0, 6, 5, 4, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 3, 2, 1, 0, 1, 0]
Test is ubnormal.
I was extremely astonished when I realized "'tuple' object has no attribute 'pop'" and I had to push down all my solutions and do again :(
I consider this as the cleverest solution.
This comment is hidden because it contains spoiler information about the solution
This Kata is really easy; )
I had done my best to finish the kata better.