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.
count + lag(count,1) over (partition by date order by date)
code issue != kata issue, closing!
I solved it without them, but I really wish I didn't...
Looks like you did (=:
This comment is hidden because it contains spoiler information about the solution
This input expects the following result:
{'a': 318009, 'b': 196418, 'c': 0, 'd': 0}
So the problem is in your logic, not in the kata. Hint: read again the definition of
move
not an issue => closing. Cheers
You don't actually test the input that makes your code crash.
Tests are fine. The error comes from your code. You miss the input your code fails on.
I've just tried them and they are ok. Try resetting the tests (after saving locally your code or you'll lose it).
5kyu i think
yeah, i think the same, the real challenge is to solved katas without modules
You don't get the secret, you are supposed to figure out the secret (from the triplets). That is the goal of this problem.
The description has a link to the wikipedia article on summation at the bottom which should help. This kata is far easier than the level suggests so don't over think it.
For some reason I don't know the printing of "expected" and "got" by the tests is not complete. Your input string has 16 substrings. The result should have 32 substrings but "got" and "expected" have only 6...
Sorry but your code is wrong somewhere. I tried several solutions and they worked fine. The tests are done with Ruby (it is the CW way) so the reference solution which controls the results of the random tests is written in Ruby and the Ruby kata has been passed by 119 people -> I am sure this reference solution has no error. Cheers.
You'll learn more in codewars than at school ;)
There's already an update request.
It looks like a part of the error message got lost, you can create an issue on GitHub.
Loading more items...