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.
I don not understand why come here to practice and answer just by using built-in methods.
What's the difference with
.detect
?Unpublishing as a duplicate of https://www.codewars.com/kata/complete-fibonacci-series
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
Loading more items...