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.
The description says to first rotate the array, then check if it's bookended.
The tests however require the array to be returned as is if it's already bookended without rotation
I don't think the description should state that you need a recursive function.
Some of the solutions don't use a recursive function, that's only one way of solving the kata
This comment is hidden because it contains spoiler information about the solution
I quite like this, but I think the description needs to be clearer. Perhaps include an example?
I enjoyed this. Hoping it comes back, as I just finished it before it went to Draft and then couldn't submit :S
The solution code has been posted instead of a kata description
This needs corner cases included in tests.
Specifically, the case where v2[0]==v1[0] is not tested for. I was able to pass the tests with a solution that would fail here
At the moment the tests aren't testing anything
It says "It is always whites move", which I took to mean it's white's turn next.
Is this Kata based on black not having turns?
Consider this case:
White's only option is to move forward. Black then has to either move forward, or take white. In either case there's no way for White to get around the wall
What the Kata is doing is swapping every third odd value with every third even value
is there a reason why the knight isn't included?
I think this needs much clearer instructions.
When kata are based on a real-world problem I do like them to bear a good logical reality to the underlying story. I'm not sure that leaving your collection of umbrellas at the shop and expecting it to conveniently be there should you wish to pick one up next time you're there quite fits that criterion
you will need to use random numbers, usually generated by the random library. I'd suggest looking at the code for some other katas to get a feel for how it's usually done
Loading more items...