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.
i have same issues with golang and expected 0 returns but the retusn actually 23 with that strings s1 bruh
That's a problem with your code, are you using a global var?
May be it is problem in random generated string in tests
No, because if I put this string in test sample I have expected result 23
If I run the testcase individually, I pass the testcase. But when I run it collectively, it is failing.
Passing test that run when you hit "test" button is just first step of validation of your code, when you hit "attempt" more complex (often random) test cases are run on your code.
So most likely your code doesn't work well in some edge cases.
Strings in Ruby are mutable, maybe that's your problem?
I have a solution(Ruby language), but one test in test suite failed.
I logged text and saw this "wVAPVv0IRsGGmCJiM0teT5F1StS7qqIayzLGQcBp4DPCIKMl0sGquKvEgX4C5oiiFFHTbLT5H4pQxukA9lvCiAVmQjo86LUEP"
It should(according test) returns 0, but in my solution script returns 23(and it is right)
Is it problem in my solution? or something else?
whithout 'bigdecimal' I have NaN when n > 170
will try
This comment is hidden because it contains spoiler information about the solution
nice solution!