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
That one's Haskell version asks for
fib(1000)
. JS version only asks forfib(40)
, but that's still enough to prevent the truly naive implementation.A good idea...
So is this issue.
I like your solution @ooflorent! It could be optimized with a cache :)
No need to argue, just benchmark and see ;-)
A couple things to note:
So, while @ooflorent's solution is very clearly readable, it is certainly not a best practice.
team is a collective noun and it is common (primarily among speakers of British English) to refer to them as a plural. not incorrect, just different usage.
Isn't there something like
hidden
in the test framework? Or is Haskell the only static language on CW where you can forbid modules/functions?That was actually the first thing I noticed. But didn't expect anything better from people writing JavaScript. Garbage in, garbage out.
This comment is hidden because it contains spoiler information about the solution
Readable would be nice (:
thanks for this valid number list, now it's much easier to write my own tests
While you're at it, what about the Python/Coffeescript version? (Haskell translation uses randomized tests)
Thanks!
Loading more items...