/** * @param n: an integer * @return: an ineger f(n) */func Fibonacci(n int) int { // write your code here q, p := 0, 1 if n <= 1 { return n - 1 } for i := 2; i < n; i++ { sum := q + p q = p p = sum } return p}