Python
Python copied to clipboard
Add leonardo numbers algorithm
Describe your change:
Implemented the Leonardo numbers sequence algorithm.
- [x] Added type hinting
- [x] Added doctests with positive, negative, and float cases
- [x] Verified tests pass locally (
python maths/leonardo_numbers.py -v)
Reference: https://en.wikipedia.org/wiki/Leonardo_number