Skip to content

hamadasaleh/Fibonacci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fibonacci

We implement two algorithms for computing the nth term of the Fibonacci sequence

$$ \begin{equation*} \forall n \in \mathbb{N}, \ u_n = \begin{cases} n & \text{if } n < 2 \\ u_{n-1} + u_{n-2} & \text{if } n \geq 2 \end{cases} \end{equation*} $$

  • naive_fibonacci → $\mathcal{O}(2^n)$
  • smart_fibonacci → $\mathcal{O}(n)$

Usage

pixi run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages