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.
merged. Thanks!
Thanks! Done
:-) done
Merged CoffeeScript translation. Reason translation needs fork too
Reason and CoffeeScript translation still cannot be merged
merged
Thanks for the translations!
The Reason, Factor and CoffeeScript translations cannot be merged. I get the following error: “Description cannot be approved, recent changes from related record must be merged first.”. Maybe there is a merge conflict. Anybody knows how to solve this?
I made the description more clear (i hope ;-) ).
It only has one cube sum but it should have at least two different cube sums.
Since three pairs also fulfill the required condition, the resulting
true
is ok. You probably should checktimes >= 2
instead oftimes == 2
.I suspect this is due to the
Math.cbrt
function. If it is polyfilled like suggested here [1], the rounding error in1/3
will be propageted to the result and you getMath.cbrt(1728) = 11.999999999999998
instead ofMath.cbrt(1728) = 12
.Maybe you can try to implement the loop without using the
cbrt
function.[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt#Polyfill
Your function should return the same value for the same inputs ;-)
Which language do you use? Can you post your solution?
The test case tests 1000 random numbers between 0 and 100000000.
You need to use a cache for computed data
You need to use some kind of cache for computed data. Should be possible with and without recursion (memoization)
Loading more items...