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.
no random tests in Clojure and Ruby
This comment is hidden because it contains spoiler information about the solution
The statement doesn't say the input must be a positive integer when the answer is an integer, so there should be test cases for zero and negative integer arguments.
I know these aren't there now, since my first (and only, so far) submission will fail the zero case, returning true, when the correct answer is false; and most or all of the submissions using Math.log will fail on negative arguments.
My submission was in Ruby, btw, but the same principle applies to all translations.
People are using n % 4 to solve this kata, and I dont think this is right...
Maybe theres not enough test cases?
Hello, it will be nice, that in the task you explain more word 'power'
For example, write in brackets like this: "power(index,exponent)" , because it may be misunderstooded by not native english speakers
Thanks.
You could add tests for Infinity in the javascript version:
You could add numeric strings, such as "4", which shouldn't pass, but would with some existing solutions.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution