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.
Nice but could slightly improve it - the "else" directive not necessary, last "return" works without. Anyway, great typing skill
worked some more on my solution, and have found the mistake -> fixed it. Random test now pass 100%.
The wrong i think was an overall situation when some (slighly) wrong solution could sometimes pass random tests and score as right solution.
I suppose the situation could be avoided if add another 'fixed' testcase:
total 4 floors, capacity = 1,
queues:
3 : Empty
2 : 3,3,3
1 : 0
0 : Empty
That was the case where my program had a little problem but still could pass all fixed tests.
p.s for now not sure to mark as an 'issue' whatever it could mean here.
175 other people pass the JS Kata and didn't have the same problems with the random tests, so chances are that your code is slightly wrong but only fails in rare cases
If it is the Kata is at fault then I want to fix it, but nothing can be fixed unless you give more information like:
If you can come back with supporting evidience of a real problem them please report it again as an issue.
JS, the situation is: The solution have passed all the tests, but when i pressed submit, 1 of random test failed.
i have repeated several times and found out : sometimes random tests pass, sometimes got 1-2 fails of ~30 tests.
suppose there is some mistake in my approach, for now got no idea what is the mistake, maybe there is some specific conditions that random tests can not cover. All 'fixed' tests got pass anyway
Very funny kata,btw
Very cool and exciting kata!
Did anyone think that would be a first step to build own chess engine?
Maybe very basic (use random move at least) but able to make valid moves,
look if add here handling of specific conditions like stalemate and castling, and here we got formally working engine with support of all chess rules. Is not it great?
Maybe sometime i could master my own kata on this, if nobody haven't done yet :)
Thanks author, that s my first 'very satisfied'. :) Reminds me of a good times when 'was making my little roguelike game, similar problem was to conctruct level map and then check if exit is reachable.