An open API service indexing awesome lists of open source software.

https://github.com/joseluisq/fibonacci-sequence

Examples of The Fibonacci Sequence in some programming languages for learning purposes.
https://github.com/joseluisq/fibonacci-sequence

clang code-examples cpp fibonacci-sequence haskell java lua rust-lang

Last synced: 3 months ago
JSON representation

Examples of The Fibonacci Sequence in some programming languages for learning purposes.

Awesome Lists containing this project

README

        

# Fibonacci Sequence 🐌

> Examples of [The Fibonacci Sequence](https://wiki.haskell.org/The_Fibonacci_sequence) in some programming languages for learning purposes.

## Complexity

```sh
O(50) = 12586269025
```

## Code examples

### Compiled languages

| Language | Command |
|----------|-------------|
| [C](https://en.wikipedia.org/wiki/C_(programming_language)) | `make c` |
| [C++](https://isocpp.org/) | `make cpp` |
| [Haskell](https://www.haskell.org/) | `make hs` |
| [Rust](https://www.rust-lang.org/) | `make rs` |
| [Go](https://golang.org/) | `make go` |
| [Java](https://www.oracle.com/java/) | `make java` |
| [Kotlin](https://kotlinlang.org/) | `make kt` |
| [V](https://vlang.io/) | `make v` |

### Scripting languages

| Language | Command |
|----------|-------------|
| [Lua](https://www.lua.org/) | `make lua` |
| [Julia](https://julialang.org/) | `make jl` |
| [Python](https://www.python.org/) | `make py` |
| [Ruby](https://www.ruby-lang.org/en/) | `make rb` |

## References

- [labuladong/fucking-algorithm - Analysis of Dynamic Programming / Fibonacci sequence](https://labuladong.gitbook.io/algo-en/i.-dynamic-programming/analysisofdynamicprogramming#1-fibonacci-sequence)

## Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in current work by you, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.

Feel free to send some [Pull request](https://github.com/joseluisq/fibonacci-sequence/pulls) or [issue](https://github.com/joseluisq/fibonacci-sequence/issues).

## License

This work is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).

© 2020-present [Jose Quintana](https://git.io/joseluisq)