Fibonacci Code Golf

Posted by Claudiu on Stack Overflow See other posts from Stack Overflow or by Claudiu
Published on 2008-10-24T08:49:38Z Indexed on 2010/05/25 1:11 UTC
Read the original article Hit count: 289

Generate the Fibonacci sequence in the fewest amount of characters possible. Any language is OK, except for one that you define with one operator, f, which prints the Fibonacci numbers.

Starting point: 25 characters in Haskell:

f=0:1:zipWith(+)f(tail f)

© Stack Overflow or respective owner

Related posts about language-agnostic

Related posts about fun