Skip to content

TheCodingBook

  • Home
  • Basic
  • Classic
  • Challenge
  • Subscribe

number sequences

Classic: Fibonacci Sequence

February 11, 2022 by AlgoExpert

Question: Fibonacci sequence is a sequence of numbers where the number at position i is the sum of the numbers at positions i-1 and i-2. Please implement a function to output a Fibonacci sequence, as a list of length n with n as the input of the function. Assume that the first two elements of … Read more

Categories Classic Tags fibonacci, number sequences Leave a comment
© 2022 TheCodingBook • Built with GeneratePress