Recursive Functions (58)

10 Name: #!/usr/bin/anonymous : 2008-02-13 04:08 ID:Q0yr27bw

>>8

A recursive haskell fibonacci function that runs in linear time:

[code]fibs = 0 : 1 : (zipWith (+) fibs (tail fibs))[/code]

ta da!

This thread has been closed. You cannot post in this thread any longer.