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.
Very interesting kata, thanks.
That input is not a perfect square because there are two consecutive
\n.and so it makes a
2x3rectangle with dots on top and bottom but empty in the middlewhy perfect_square('..\n\n..'): True should equal False, if print('..\n\n..') return
'..
..'
Great kata to solve.
Nice kata on the basics.
0ne 0f the best 6kuy katas.
The tests for this kata are flawed. If you "null" out all spots for shoes in the ShoeRack and then submit that as your result, you will pass 100% of the tests.
Good kata. Thanks!
My first attempt failed two of the fixed tests:
'\n.'and'..\n\n..'. But it passed all the random tests. So I just had to hardcode those two cases. The random tests should include examples like those. In that case solutions like mine would have to be correctly fixed.You should write a function with which you can print the board at any moment with all the information that you need. And don't try to solve this kata in the browser, I think the complexity demands an IDE / Editor with debugging capabilities
Total driving time is over 10 hours. Why does it expect the result to be true?
I solved this kata in the same way. But to be fair, this is more of a logic challenge than a programming skill challenge. Thanks to the author for preventing Alzheimer's disease
Node 18. (
mocha + chai) should be enabledTests are vulnerable to input modification
Missing such test cases for rest times between 16-29 minutes and 31-44 minutes, which will invalidate my solution.
[["8:00-10:00","Drive"],
["10:00-10:20","Rest"],
["10:20-12:20","Drive"],
["12:20-12:55","Rest"],
["12:55-15:00","Drive"]
];
(expected true)
Loading more items...