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 me, description looks fine. Actually, YOUR POST pushed me towards an easy
ground-roof-ground
solution, haha. Even though clearly it's not how the lift is supposed to move. Idk if we should hide this thread. It felt like cheatingLOL!!! I DID IT!
Just in time 16248 ms
And most likely one of the stupiest solutions.
And all the glory and rewards along the way (ranking up in java, ranking up total, exceeding 2000 honor points).
BTW the tip of trying it multiple times is golden. There is a luck factor.
1st trial: passed 294 tests
2nd trial: passed 263 tests
just out of frustation I clicked again and BANG!
3rd trial: passed all tests
thx, I just misread it. I thought he meant for java max size would 250x250!
OK, 250 tests then.
It's in the description.
How many random tests are there?
If I am close I keep trying, but maybe there 500-1000 more. In this case I've something more useful to do.
Yes, you're right! But that's exactly the point.
I just stated out that this hint was for me misleading and pushed me towards a wrong direction.
And if it pushes someone (in this case me) into a wrong direction, then something about this hint isn't great.
This whole thing is just a suggestion. Take it or leave it. It's entirely up to you.
Perhaps you are only describing how you own implementation works... but not actually a requirement of the rules?
Hmmm, I don't what I should respond to this. I've mentioned twice that it goes there but doesn't stop.
Sorry, but your reply isn't really an answer.
The Kata output is:
So, if what you say was true then the top floor of the building should be part of every answer.
But it isn't.
First of all thank you for this wonderful kata! It's very realistic and of so much use for other problems.
The instructions are amazing.
But there is one thing I don't really like:
The hint the lift tries to be smart part. It may continue in the same direction. (I think this is misleading and make things more complicated than neccessary)
It actually continues in the same direction until it isn't possible anymore. The lift just doesn't stop, unless it has to (somebody wants to leave or enter the lift).
Example: lift is moving upwards and is in floor 6 of 7, the lift is empty.
It always moves to floor 7 (even if there isn't anybody) and then turns around and moves downwards it just doesn't stop until it reaches a floor in which someone is waiting for the elevator moving downwards.
because you can replace your final result following rule one