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.
For some reason lots of people have trouble with this one, although everything follows the same rules so failing just this clearly means you did not implement all the rules correctly yet. Notice for the fire drill everybody wants to go DOWN, and remember that the lift start on the ground so begins its journey going UP.
I don't know your problem but I can guess paying closer attention to the rules of the empty lift might help .... "When empty the Lift tries to be smart. For example, if it was going up then it may continue up to collect the highest floor person wanting to go down"...
Cheers.
first of all i would like to thank dinglemouse for this really awesome kata, even though i haven't solved it yet, i have had fun pondering it so far. the simple tests have all been successful, but in the advanced tests, 2 fail: fire_drill and random. When I read your question, I wondered how you got the test case of fire_drill, for example?
Not an issue.
Unavoidable. The lift doesn't know when it is full...
Had the same problem, as this behaiviour is not really usefull. Guess we have to read the instructions more carefully
I have the same question. From the instructions, it seems that it would start by going to 5th, 4th, then back to 0 to drop them off.
Unfortunately, the comment dinglemouse made has been hidden, so I apologize if you already answered this.
(python)
Edit: nevermind. I was able to see that comment. I'll reiterate the rule dinglemouse quoted in case anybody else has the same confusion.
This comment is hidden because it contains spoiler information about the solution
I can not undestand. Why the fire_drill test
6 {0,0,0,0}
5 {0,0,0,0}
4 {0,0,0,0}
3 {0,0,0,0}
2 {0,0,0,0}
1 {0,0,0,0}
0 {}
has the result:
[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] with capacity 5.
Why does the lift stop at 4, 3, 2, 1 floors after he took four people on the fifth floor and another one on the fourth? Shouldn't he then go down to the ground floor to drop them off? I use С++