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.
Cases added. Thank you for your help.
I can add these two cases, but I don't want to add some very big test cases into samples test.
If I add this:
The length should be 21, not 22.
Would this one fit?
Otherwise I'll just add those two.
I fixed this point, thank you for pointing it out.
Any other thing that could be improved, please let me know.
You are trying to return
2when n is3, but there are 2 numbers in middle row, center does not exist.Not a Kata issue.
This comment is hidden because it contains spoiler information about the solution
In Python, just notice that no matter the user solution returns an
intor astr, both may pass the test, is this okay?Maybe put
{2, 3, 10, 30}as a sample test?Using your technique, get it down to 85.
The examples in Thre-of-a-Kind are Full House...
should be fixed now.
In description says return the smaller number if 2 numbers are same distance from
n, but right now asking for the one appear first.Duplicate?
Let me edit the description to make it clearer, also I will put some hints.
The main difference between this 2 Kata is that going back to the beginning point or not
For this one, you can save 1 step in certain situation, because you can end at anywhere.
Ending at one of the particular points will save you 1 step. But these points might not always exist, so you will see it has 1 less in some cases, but not all.
Forgot about this, now user will be given a copy of grid, should be fixed.
Loading more items...