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.
This comment is hidden because it contains spoiler information about the solution
Just thinking that "loop the same long string 26 times" already is O(n).
Not sure if I agree. The case satement referencing each index in each when is much more readable and more immediately understandable.
Beautiful! It's calling 'placeholder'?
Yeah absolutely sexy, this also prevents nasty user input because it enforces the use of a certain datatype. Thanks for the upload!
This is just beautiful to look at. My personal favourite!
Cool, thanks!
Yes. I let the kata as it is...
Well, either way the language versions are inconsistent with each other, so you'll have to decide whether to enforce it or not.
It's kind of a work but if you read at the very bottom of the page you will find a post by @ZozoFouchtra who made the JS translation:
This is why this is not tested (the constraint was added from the HS translation).
At least in JS this is not tested and even the reference solution does not handle them correctly.
I will look at it but it is a suggestion, not an issue.
This comment is hidden because it contains spoiler information about the solution
What is the result of
solution("foo#bar", ["#"])
supposed to be?I would expect that it should be
"foo"
.But there are solutions of the kata, where the result is
"foo#bar"
,so a test might be missing to enforce this.
The final tests dont catch it if you forget to implement zero.
Loading more items...