Wednesday, 21 March 2012

Find nth fibonacci number without traversing from the start

Write a program to find the nth fibonacci number without traversing from the start index.
ie.. the program should have a time complexity of the order of 1 [O(1)].

No comments:

Post a Comment