@lisba/data-structures-js

0.2.8 • Public • Published

@lisba/data-structures-js

npm GitHub last commit npm NPM

Common data structures implementation in Javascript.

Installation

yarn: yarn add @lisba/data-structures-js

npm: npm install @lisba/data-structures-js

Usage

import {
  Stack,
  Queue,
  HashTable,
  MySinglyLinkedList,
  MyDoublyLinkedList,
  BinarySearchTree,
  UndirectedGraph,
} from '@lisba/data-structures-js';

const myStack = new Stack();
const myQueue = new Queue();
const myHashTable = new HashTable(50);
const mySinglyLinkedList = new MySinglyLinkedList(1);
const myDoublyLinkedList = new MyDoublyLinkedList(1);
const myTree = new BinarySearchTree();
const myGraph = new UndirectedGraph();

Collaborate

In order to collaborate with the proyect you need to:

  1. Fork the repo.
  2. Clone the repo to work locally with git clone repo-url.
  3. Install dependencies with yarn install.
  4. Develop suggested changes in a new branch (make sure you are using the prettier config, you can run yarn format or install the prettier extension if you are using vsc editor to format on save).
  5. Run yarn build and yarn start to verify your changes doesn't has errors.
  6. Push your changes to your repo git push remote-repo branch-name.
  7. Make the pull request.

License

The MIT License. Full License here

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i @lisba/data-structures-js

    Weekly Downloads

    0

    Version

    0.2.8

    License

    MIT

    Unpacked Size

    76.6 kB

    Total Files

    37

    Last publish

    Collaborators

    • lisba