Calculate the Nth Fibonacci Number from a Sequence

0
1017

This guide walks through how to work with the Fibonacci sequence and return the final from a list of Fibonacci numbers.

Summary

Build a method that returns the nth Fibonacci number.

Exercise File

Code File

Exercise Description

Build a method that takes in a number, that represents n and returns the nth Fibonacci number in the sequence.

Sample Input

nth_fibonacci 10

Expected Output

89

Real World Usage

The Fibonacci sequence is critical for a number of algorithm implementations, this guide walks through how to pick out specific Fibonacci numbers.

Solution

Can be found on the solutions branch on github.

LEAVE A REPLY

Please enter your comment!
Please enter your name here