That one's Haskell version asks for fib(1000). JS version only asks for fib(40), but that's still enough to prevent the truly naive implementation.
fib(1000)
fib(40)
i made a mistake what i did was list.map(regexp)
Fixed.
Added.
This comment is hidden because it contains spoiler information about the solution
Not an issue.
This is a direct duplicate, see below.
There are direct Fibs kata, see below.
For some reason, doing this did not work when I attempted it... and only worked once I removed the ampersand.
I'm still not certain how closures work in Ruby... hell, I'm not even certain that is the concept I should be looking up.
How is using reduce writing your own reduce ?
Not an issue
Suggestion
What????
Python translation submitted :)
Needs more robust test cases for use in 'Run tests'. Good to have a beginner kata for Fibbonaci that doesn't rely on sophisticated generation.
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.i made a mistake what i did was list.map(regexp)
Fixed.
Added.
This comment is hidden because it contains spoiler information about the solution
Not an issue.
This is a direct duplicate, see below.
There are direct Fibs kata, see below.
For some reason, doing this did not work when I attempted it... and only worked once I removed the ampersand.
I'm still not certain how closures work in Ruby... hell, I'm not even certain that is the concept I should be looking up.
How is using reduce writing your own reduce ?
Not an issue
Suggestion
What????
Python translation submitted :)
Needs more robust test cases for use in 'Run tests'. Good to have a beginner kata for Fibbonaci that doesn't rely on sophisticated generation.
Loading more items...