- Vector
- Stack
- Queue
- LinkList
- Deque
- PriorityQueue
- OrderedSet (using RBTree)
- OrderedMap (using RBTree)
- HashSet
- HashMap
- node.js (using commonjs)
- react/vue (using es5)
- browser (support most browsers)
Download directly
- js-sdsl.js (for development)
- js-sdsl.min.js (for production)
Or install js-sdsl using npm
npm install js-sdsl
To help you have a better use, we provide this API document.
<!-- you can download the file locally and import it or import it dynamically by using url. -->
<script src="https://zly201.github.io/js-sdsl/js-sdsl.min.js"></script>
<script>
const { Vector } = sdsl;
const myVector = new Vector();
// you code here...
</script>
You can pull this repository and run yarn build
to rebuild this library.
We use jest library to write unit tests, you can see test coverage on coveralls. You can run yarn test:check
command to reproduce it.
We tested most of the functions for efficiency. You can go to testResult.txt
to see our running results or reproduce it with yarn test:performance
command.
Feel free to dive in! Open an issue or submit PRs.
Thanks goes to these wonderful people (emoji key):
Takatoshi Kondo 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © ZLY201