Re:Data structures and algorithms I actually used while work...
by jlokier on Wednesday July 15, 2020 @02:49PM
(#23849844)
If the question is "generate the Nth number in the series", I would be inclined to suggest a closed-form solution that returns in O(1) time (assuming regular size integers), no iteration required.
Of course, the Fibonacci series also grows incredibly fast, so practically speaking, unless your language supports arbitrarily large integers, you'll never generate even 100 elements of the series.