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
Looks like it's the same as your own solution, just written differently.
This comment is hidden because it contains spoiler information about the solution
The predefined head and tail functions may not be the way forward.
no point reinventing the wheel
Thank you.
You are right about kung-fu; Hmm: google-fu, google-foo. I think I've seen the latter more often, but I might have screwed up too.
I'm pretty sure I took more than five searches (after countless attempts to get the closed form on the wikipedia page to be short enough).
'foo' as in kung-foo (google-foo arguably rolls off the tongue better than google-jitsu).
Substitute the word 'skill' if you prefer.
You would have to be pretty lucky to come across the exact solution - as linked by Monadius - but it's definitely possible to find various non-recursive fibonacci formulas; it might not be on the first page returned by the most obvious search terms but that's where the google foo, er, skills come in.
Once you've found a formula, you would then need to reduce it's length - hence the golfing skills.
My point was that I'm not some mathematical golfing savant who can just produce the solution from thin air...
Still an issue 3 years later.
You use your google foo to find a non-recursive formula, then your golf-foo to make it short enough.
Not your algo, the description says '150 in a row' but akar-0 - and everyone else using 150 - is testing for 150 total (non-consecutive).
(100 consecutive - or 150 overall - passes all the tests).
Very satisfying kata. Will definitely check out your other katas.
In the description,
,
appears to be in the list of eyes - it is not, it just appears to be.Maybe remove the commas (and maybe the ors?) from the list of emoticon parts...?
I agree that it would be more sensible? fun? realistic? to take into account how much you fuel level has actually increased by the time you got home.
But it's a 7 year old kata, it's not changing.
This comment is hidden because it contains spoiler information about the solution
Loading more items...