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.
Fixed
The error messages are in the wrong order.
They give " should be " rather than the other way around
Thanks. Good suggestion! I removed it from the initial solution and put it into the tests.
Tests should import
random
explicitly, rather than relying on the user's solution to do thatIn the example and submit tests,
it
title contains two times the wordreturn
.it
title saysfalse
instead ofNone
.Yes, much better. Although, only the examples show to pick elements from the right. I've been going through the array from left to right all the time, moving elements to the right.
You're totally right. Thanks for pointing this out. I modified the description following your suggestion.
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
Thanks ! I was suprised it wasn't on OEIS yet. I'm glad that such autistic idea came to someone else too.
Just link the video that completely coincidentally was released at the same time as the kata https://www.youtube.com/watch?v=c066hLi78B0
.
Or maybe not. Whatever, your kata, not my responsibility,
precompute 10001
fixes it.Sorry, don't think it's an off-by-one error actually, I think this
should have an
<=
instead of a<
.Loading more items...