Skip to content
Prev 257640 / 398502 Next

Fibonacci

I, too, like the Michael/David/Wikipedia solution.  But if this is homework, I would recommend using length() instead of max() for getting the last two items of the vector.

Hope this is helpful,

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204