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.
:)
Yup, it's fixed.
In the tests:
I suggest changing the code into something more readable, as it won't only be you maintaining the code once this gets published.
The moves in javascript can lead to positions outside of the tape:
The message
2 should equal 1
refers to a previous test your code fails on:As you can see above, your code returns
2
for input00101
.No, both should be 2. Are you sure that's the candles the tests gave?
In the
testRandomNonAsciiString
tests, when the code still return string with non-ASCII chars:This message is very unhelpful. Not only that, the way to verify the result is wrong. User can get a string with non-ascii characters and just return
"abc"
or""
no matter what the input string is.Well, you asked about the title, so that's why I gave the wiki link there to address the title.
About the description, I do believe the wording for the result can be fixed yeah. Giving the wiki page link is not an option though since they list the algorithms that can be used to solve this.
This comment is hidden because it contains spoiler information about the solution
find item index in array / string
katas:Approved
Approved
Examples should be language-agnostic (remove the
i_before_e
from the example and just show input to output transformation)itertools.batched
added in Python v3.12. Codewars uses Python v3.11.Thanks for explaining.
I saw that in some test cases, the number
2
also happens to have something like this.For example, the number
32056
:тридцать два тысячи пятьдесят шесть
тридцать две тысячи пятьдесят шесть
Is this also caused by the masculine-feminine relation between words?
Also, I feel like this is something that should be mentioned in the description. I'm not a russian speaker and currently confused as to how to differ between masculine and feminine words.
Loading more items...