Can a Fibonacci function be written to execute in O(1) time? Technology Community › Category: Fibonacci Sequence › Can a Fibonacci function be written to execute in O(1) time? 0 Vote Up Vote Down VietMX Staff asked 4 years ago Given arbitrary large inputs, simply reading in n takes O(log n), so in that sense no constant time algorithm is possible. But printing (or even storing) the output is O(n), no matter what number base you use.