1.0.15 • Published 4 years ago

ds-js-x v1.0.15

Weekly downloads
6
License
ISC
Repository
github
Last release
4 years ago

ds-js-x

View Documentation

JavaScript Data Structure Library for leetcoding or general use. Currently supports:

  • LinkedList
  • Stack
  • Queue
  • Binary Search Tree
  • Heap (Min & Max)
  • Priority Queue
  • Disjoint Set
  • Segment Tree

Installation

npm i --save ds-js-x

Documentation

View Documentation

Usage

- Imports all data structure:
+ let DS = require('ds-js-x');
+ DS.help();

-Imports BinarySearchTree:
+ let tree = new DS.BinarySearchTree();

-Imports LinkedList:
+ let list = new DS.LinkedList();

- Imports Stack:
+ let stack = new DS.Stack();

- Imports Queue:
+ let queue = new DS.Queue();

- Imports Max Heap:
+ let heap = new DS.PriorityQueue();

- Imports Min Heap:
+ let heap = new DS.PriorityQueue((a, b) => a - b < 0);

- Imports Priority Queue:
+ let queue = new DS.PriorityQueue(comparator);

Development

  • src folder contains the implementation details
    • npm run build to produce build/ folder
    • npm run test to run all testcases
  • build folder contains the version to be published
  • test folder contains integration testing code
    • Download the latest version of ds-js-x
    • Use this package as if you are the actual user
1.0.15

4 years ago

1.0.14

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.1.0

4 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago