Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/swistak-codes/recursion

Code for blog article
https://github.com/swistak-codes/recursion

Last synced: about 2 months ago
JSON representation

Code for blog article

Awesome Lists containing this project

README

        

Code for blog article about recursion and https://swistak.codes/derekursywacja/ about moving from recursion to iteration.

* basic-example.c - Fibonacci and factorial written purely recursive in C
* basic-example.fs - Fibonacci and factorial written purely recursive in F#
* tail-example.c - Fibonacci and factorial written with tail recursion in C
* tail-example.fs - Fibonacci and factorial written with tail recursion in F#
* iteration-from-tail.c - example showing Fibonacci and factorial rewritten to iterative directly from their tail recursive version (C)
* nonrecursive-stack.c - example showing Fibonacci and factorial rewritten to iterative by simulating call stack (C)
* benchmark.c - program for measuring execution times of different ways of writing Fibonacci function