This project is an attempt to optimize regular stack based recursion with trampolines
TRAMPOLINING is a functional programming concnept allowing to transform stack based recursion to iteration
Take a look at ruby/main.rb
or python/main.py
(or javascript/main.js
, even bash/main.sh
;)) for implementation details
git clone
cd into project
# Ruby
./ruby/main.rb [num]
# Python
./python/main.py [num]
# Javascript
./javascript/main.js [num]
# Bash
./bash/main.sh [num]
Feel free to write PR or Open Issues in case of any questions
- Marek Dziewit - ruby version
- Michał Pańczyk - python and bash version
- Paweł K - javascript version
This project is licensed under the MIT License