Release 0.4 - PR2
For the second and third pull requests for the last release I decided to create couple of the algorithms and tests for open source project on GitHub. In October I found the repo where owner asked to implement standard algorithms using JavaScript and write tests for them.
For this PR I took Leonardo numbers function, commented about this in the issues and started to work. This function takes n as an input, and then returns all Leonardo numbers up to n.
https://en.wikipedia.org/wiki/Leonardo_number
Code of this function you can see below.
Code of this function you can see below.
Test for this function:
I tested my function and created the pull request.
https://github.com/manrajgrover/algorithms-js/pull/69
Comments
Post a Comment