It is the best solution because it has constant time complexity. Any cycle method will lose against it.
that wouldn't work if the list has more than 3 elements
This comment is hidden because it contains spoiler information about the solution
indeed, it is. And there's still an option to make a new Haskell translation... I'll copy and paste to a new one and improve things.
EDIT: here -- uses QuickCheck now.
Is it unpublished?
Can you provide me with code to be put in the Preloaded section for this?
Good point. Fixed. Thanks.
Don't use Test.expect at all unless there are absolute reasons for it.
This is coconuts.
Is the amount of people passing a kata a good metric of its clarity?
Then what about the more than 25000 that did not pass it?
IMHO not a good percentage for a 5kyu kata which, as others already mentioned, is probably more of a 6kyu one.
Sorry to enter your nonsense "clarity metrics" discussion, I was trying to help in the first place.
I think the kata is clear enough since more than 6000 guys passed the kata. There is no intention to dispose the drawing as a spiral, only to show some fib numbers. Cheers.