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.
d*mn, I don't know int can be inherted
Fancy kata on pattern matching, I really like it.
Underscore is just a convention, "k for k,g in groupby(iterable)" also works perfectly.
How does repr have anything to do with this kata?
The rules are somewhat vague, but I really enjoyed creating efficient regex for this kata.
You cannot get that behaviour wihout using any classes or objects in python
In the test category "LengthTests" I think instead of "some-horribly-long-domain-name-this-time-longer-than-63-charaters.zzz" the given text should be "some-horribly-long-LEVEL-name-this-time-longer-than-63-charaters.zzz".
As the level name is longer than 63 characters I think the result for this test should be false not true.
BUT I am not quite sure because it is not clear from the output which test of the test category it refers to.
Python fork with random tests and standard failure messages: https://www.codewars.com/kumite/64b321a2206744001d337b9e?sel=64b321a2206744001d337b9e
Submitted a Javascript translation for this kata.
Oh right, i can print that, i forgor 💀.
My regex is wrong, i know it, i just couldn't figure out why it was failing one of the tests. Now that i printed it, i see that it was the test for 253 total characters limit (and that it's not 7th, it's #8 out of 10 length tests...).
Thanks for the assist.
Fix:
https://www.codewars.com/kumite/64b45a832067442d2333832f
Not sure what you're asking, do you mean which rule are you getting wrong? Which test is the seventh test? Easier for people to answer you if you show the output and argue for why it should be your answer instead of the one the test wants. Or if you're wondering what the input was, then I mean ask what the input was, but, you can print that. All around I'm really confused.
My solution [python] is passing all of the tests except one and i have no idea what is wrong because all it says is "value is not what was expected". But what was expected? I only know it's something about length, but i already tried every "missed by one" possible errors and no luck.
What does the 7th test in the length group test for?
.
The same for PHP
Loading more items...