A small data structures library for JavaScript, also includes some algorithms.
npm i js-data-structs
https://cdn.jsdelivr.net/npm/js-data-structs/DataStructures.js
https://cdn.jsdelivr.net/npm/js-data-structs/DataStructures.min.js
- Trees
- Binary Trees
- Binary Search Trees
- Stack
- Queue
- Priority Queue
- Graph
- BFS
- DFS
- Topological Sort
- Dijkstra's Algorithm
- Trie
- Power set
- Heap's algorithm (array permutations)
- Linked List
- Heap Sort
- Max heap
- Min heap
- Z algorithm (pattern matching)
- N Queens
- LZW
- Encoding
- Decoding
-
Minified version
-
Linked List
- Circular Linked List
- Doubly Linked List
-
Heapsort
- Max heap
- Min heap
-
Suffix trees
-
More Graph algorithms
- Topological Sort
- Dijkstra's Algorithm
-
LZW
- Encoding
- Decoding