Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Fibonacci (C++)

Single-file recursive Fibonacci calculator written in as few lines as practical.

Build (CMake)

cmake -S . -B build
cmake --build build --config Release
./build/fib 10

One-liner compile (no CMake)

g++ -std=c++17 -O2 -o fib src/main.cpp && ./fib 10

Pass an integer argument (defaults to 10).

Note: This is the naive exponential-time recursion for brevity, not performance.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages