UBS Interview Question

Few algorithms for computing efficiently the Fibonacci sequence

Interview Answer

Anonymous

Apr 3, 2024

Naive (constant space, O(n) in time), or using efficient computation of power of any real number (O(log n) in time).