- Notifications
You must be signed in to change notification settings - Fork55
A library for data structure in JavaScript
License
Bishop92/JavaScript-Data-Structures
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A library for data structures in JavaScript
DataStructures is a JavaScript library where you can find the most common data structures and also other datastructures more advanced. Various method are also provided in order to manipulate data structures.
This library implements the [iterator] (http://en.wikipedia.org/wiki/Iterator_pattern) pattern in order to hidethe data structure that work for storing your data.
- Stack
- Queue
- Priority Queue
- Circular Buffer
- Hash Table
- Linked List
- Double Linked List
- Binary search Tree
- Red-Black Tree
- Red-Black Tree List
- B-Tree
- Set
- Trie
Download the minimized libraryhere (right click and save as...);
Include the file in your project;
Start to use it as any other class.
Example
varlistA=newDoubleLinkedList();varlistB=newDoubleLinkedList();listA.fromArray([0,1]);listB.fromArray([2,3]);listA.join(listB);listA.toArray();// [0, 1, 2, 3]
Follow thislink to read the full documentation.Follow thislink to read the JSDoc.
Battistella Stefano,stefano.battistella.92@gmail.com
About
A library for data structure in JavaScript
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.