rahome
v0.2.8
Published
Popular data structures for writing efficient programs in JavaScript
Downloads
4
Maintainers
Readme
rahome
Popular data structures for writing efficient programs in JavaScript.
Badges
Installing
This module is distributed via npm
which is bundled with node
and should be installed as one of your project's dependence.
npm install rahome --save
Usage
import { LinkedList } from 'rahome'
const list = new LinkedList()
list.add(10) // add 10 to list => [10]
list.add(20) // add 20 to list => [10] -> [20]
list.add(30) // add 20 to list => [10] -> [20] -> [30]
list.addFirst(5) // add 10 to list => [5] -> [10] -> [20] -> [30]
list.addLast(40) // add 40 to list => [5] -> [10] -> [20] -> [30] -> [40]
API Reference
Contributing
Pull requests are welcome. Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the MIT License - see the LICENSE file for details