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.
Haskell translation
Python, possibly other languages: tests are susceptible to mutation of input and either crash or show incorrect visualisation if a user solution mutates input
tree
.There are snakes at the end of the
board
in Go tests. I've created a fork that fixes this bug. Could someone approve it?Fun problem, although a little easy for 5kyu.
One suggestion: It would be nice if an example showing multiple lines was included in either the description or the sample tests.
This comment is hidden because it contains spoiler information about the solution
Another great problem from dinglemouse! Easier than the tennis one.
In Python the names of the batsmen are a string, not a list. Probably the description should be modified to reflect this.
Beautifully done - thanks!
I do agree with some of the other posts here that more sample tests would be helpful.
For tennis fans, it might be worth adding to the description a mention of this easier problem: Give the status of the tennis game
Haskell translation
You can show user solution as well for easy debugging.
Python and potentially other languages: description should be in
snake_case
.Ruby version kunited, please check and approve
Very nice problem - thanks!
One question: Why do Python solutions need to deal with the mysterious Dinglemouse object? Why not just define a function with parameters queues and capacity, as in the other languages? That's how I wrote the code in my IDE, only to discover that I needed to insert self. everywhere to make it work.
Now do a beer pong kata!
Hello everyone!
Can somebody please explain me this example:
I see here
5
ants,2
are alive and3
are dead, however testcase expects other resultPS: Used language, Java
C#
Is it broken?
Test fail messages don't make any sense. Even when I deliberately return the expected set - the test still fails
Loading more items...