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.
true
Duplicate.
Sorry about that, I've swapped them so they are now correct. I don't make Codewars Kata very often so I tend to forget the nitty gritties of creating one.
Thanks so much!
Actual and expected are swapped
Thanks. I added 50 random tests and I fixed the typo in the description.
No random tests
you're
should beyour
in descriptionI got the exact same problem. It doesn't make sense.
Added the input ranges for the different tests in the description. Thanks.
Added performace tests for bigger numbers. Thanks for the feedback. Now, in all my subsequent katas, I will remember to check for performance. Again, thanks a lot.
This comment is hidden because it contains spoiler information about the solution
I do not understand your last statement 'There is a big difference whether or not number is representable as a float'
Input range should be specified in description. There is a big difference whether or not
number
is representable as a float.This should not pass:
https://www.codewars.com/kata/reviews/60e1547c25f2b300019663e1/groups/60e171d9e8a69e00018b43c9
My bad - Added some test cases for None returns. Thanks.
You don't seem to ever actually test this. You should either test it or change it that the numbers will always satisfy the equation.
Loading more items...