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.
.
[javascript]. My code is getting failed test cases when they should be passing. For example, I get this error message:
should work for random perfect powers
your pair (40, 6) doesn't work for 4097152081 - Expected: 4097152081, instead got: 4096000000
when in fact Math.pow(40, 6) = 4096000000. And also:
should return valid pairs for random inputs
your pair (33, 3) doesn't work for 35947 - Expected: 35947, instead got: 35937
but again Math.pow(33, 3) = 35937
I'm doing this kata in Javascript. My code is getting failed test cases when they should be passing. For example, I get this error message:
should work for random perfect powers
your pair (40, 6) doesn't work for 4097152081 - Expected: 4097152081, instead got: 4096000000
when in fact Math.pow(40, 6) = 4096000000. And also:
should return valid pairs for random inputs
your pair (33, 3) doesn't work for 35947 - Expected: 35947, instead got: 35937
but again Math.pow(33, 3) = 35937
http://stackoverflow.com/questions/7310109/whats-the-difference-between-and-in-javascript
This comment is hidden because it contains spoiler information about the solution
Thanks everybody!
Currently Codewars platform is experiencing issues. Please wait warmly :(
https://github.com/Codewars/codewars.com/issues/893
This comment is hidden because it contains spoiler information about the solution
You're welcome. :-)
oh yea stupid me. thanks a lot!
Try "if (array == null)"
and "array.length < 3"!!!
An array of 2 without the highest and the lowest element has 0 elements! And so reduce cannot work!
i have the same issue. empty array should be filtered out in if statement but it give error
"TypeError: Reduce of empty array with no initial value at Array.reduce at sumArray"
Anyone can help? code as follow:
Good job! Thanx for the translation!
C++-Translation kumited!
C#
Loading more items...