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.
This comment is hidden because it contains spoiler information about the solution
the python translation doesn't consider booleans numbers even though they are
there's also javascript logic partially and inconsistently leaked into it, in js there's no integer type (unless counting bigint) and instead there's a number type which is just float.. but the python translation uses int.. it's not clear at all how that should be fixed if it was to be changed.
The problem states that if the arguments are numbers then it can be assumed that neither will be 0. But I am getting a division by zero error in the random tests.
Thanks for that link - learned something new. Very interesting and helpful.
Thanks, I did mine like this and wasn't sure about it.
Interesting observation!
No sample tests for Ruby.
This comment is hidden because it contains spoiler information about the solution
The initial public test that executes when clicking the test button is broken. Actually, it looks like a test for a completely different kata (it is trying to call an
add
method, so you will get a confusing error about there not being anadd
method).To complete this kata, you have to skip pushing the test button and just click the attempt button instead.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
If it failed, then why did it pass?
This comment is hidden because it contains spoiler information about the solution
This would fail for when the argument is "YX" though.
This comment is hidden because it contains spoiler information about the solution
Loading more items...