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.
У меня у одного решение не отправляется?
you need to
returna value, notprintThis comment is hidden because it contains spoiler information about the solution
ohh yeah that worked, thanks!
Try changing the version to PHP 8.0 in the kata trainer
Parse error: syntax error, unexpected '<', expecting end of file in /home/codewarrior/run.php on line 19
Anyone know how to handle this? Its appear only when trying to attempt solution :/
Its happen on PHP, even if havent a single code char in solution.
Enabled in this fork
Please do not post solutions in kata discourses.
This comment is hidden because it contains spoiler information about the solution
Nice Kata, it combines 2 simpler ones. If you've come across those, then this one is a lot easier.
I see now! Thanks for that! I didn't realize for a second that it meant alphabetical characters have no distinction between capitalized and non-capitalized.
Your solution fails another test, you read the logs wrong. It returns wrong answer for
"abcdeaB".Indivisibilities
defaultdict(<class 'int'>, {'I': 1, 'n': 1, 'd': 1, 'i': 6, 'v': 1, 's': 2, 'b': 1, 'l': 1, 't': 1, 'e': 1})
Repeated characters = 2
Why is this wrong? I am returning the correct number of repeated characters but it is still marked incorrect.
first i thought this kata is so tough, i tried every data structure which is possible to solve it like stack , vector.
i always lazy to solve it.
but, when i solve it then i realize this is only 15 lines of code with correct logic.
It is great, but has O(n*m) time complexity. The optimal solution to this problem is -> O(n)
Loading more items...