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.
Also, examples show "17 17". It is not clear what this is intended to convey.
The input is
0 [-1]
. Actual and expected are not shown; this could be achieved by replacing==
by===
. Random tests do not actually guarantee "All numbers in will be positive integers", just that they are non-zero, but generated zeroes will be shown as input.Yep, the contents of wiki are very different and tests are not passing. Too bad, because this kata is very real-life unlike most of them here.
Fixed. All solutions invalidated I guess. :P
i added a return value to the initial code so that it does not throw
I just ran this and I'm not getting any errors:
I'd say yes to both questions about the buttons.
No need to create a new issue about the same problem. Closing this one.
:magic_wand:
so uhm. this issue already exists two posts down. would have been better if you posted a reply to there. not that it really matters. in any case. I sent some wizard on the case and they fixed it from what I can tell so uhm. try again?
This comment is hidden because it contains spoiler information about the solution
It's solvable (just pasted and re-run my solution), with the right method I assume !
impossible to solve in Ruby
The kata seems to be broken in Crystal, and in similar way in C#: it relies on the overflow of 31-bit signed integer and expects negative values when the MSB of the result is set.
Sounds like typecasting issue in random test generation.
Loading more items...