about | help | code help+videos | done | prefs |
Given an input n, return the n-th Fibonacci number. Recall that the Fibonacci sequence is 1, 1, 2, 3, 5, 8, 13, ... (each number is the sum of the two before it). Fibonacci(2) → 1 Fibonacci(5) → 5 Fibonacci(6) → 8 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 150 Post-solution available
Copyright Nick Parlante 2017 - privacy