We are all familiar with the famous Fibonacci sequence, that starts with 0 and 1, and each element is the sum of the previous two. Here are the first few terms (OEIS A000045): 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584 --- Given a positive integer, return the closest number of the Fibonacci sequence, under these rules: The closest Fibonacci number is defined as the Fibonacci number with the smallest absolute difference with the given integer. For example, 34 ...