TheAlgorithms-C/math
Niranjan 144442afba
[feat/docs]: improve the Fibonacci algorithm (#1232)
* Improve the documentation of factorial.c

* Improve the documentation of fibonacci.c

* Update starting terms of fibonacci as 0 and 1

* Update math/fibonacci.c

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>

* docs: Documenting the code

* test: Add test

* fix: fix the test expression

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>

* feat: Restrict non-integer inputs

* fix: Change atoi() to sscanf()

* fix: Change atoi() to sscanf()

* fix: scanf() to getInput()

* fix: while, continue and break

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>

* fix: Increase buffer size

* fix: Doesn't accept lengthy characters

* fix: Accepts empty characters

* fix: fibonacci.c

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>

* feat: Add wikipedia link

* feat: Add author

Co-authored-by: David Leal <halfpacho@gmail.com>

* feat: Record time duration of function execution

* chore: apply suggestions from code review

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>

* chore: apply suggestions from code review

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>

---------

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
2023-04-20 13:59:14 -06:00
..
CMakeLists.txt chore: add `math` to CMake lists (#1236) 2023-03-24 13:27:10 -06:00
armstrong_number.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
cantor_set.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
cartesian_to_polar.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
catalan.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
collatz.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
euclidean_algorithm_extended.c feat: added extended Euclidean algorithm (#1238) 2023-04-13 15:33:10 -06:00
factorial.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
factorial_large_number.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
factorial_trailing_zeroes.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
fibonacci.c [feat/docs]: improve the Fibonacci algorithm (#1232) 2023-04-20 13:59:14 -06:00
fibonacci_dp.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
fibonacci_fast.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
fibonacci_formula.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
gcd.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
is_armstrong.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
large_factorials.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
lcm.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
lerp.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
palindrome.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
prime.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
prime_factoriziation.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
prime_sieve.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00
strong_number.c chore: move various `misc` folder... (#1177) 2022-12-22 11:26:50 -06:00