The Fibonacci sequence is defined by F1 = 1, F2 = 1, and Fn = Fn-1 + Fn-2. F12 = 144, which is the first term to contain three digits. Given d, find the index of the first Fibonacci number to contain d digits.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= d <= 5000
Tags:
