0.2.8 • Published 3 years ago
@lisba/data-structures-js v0.2.8
@lisba/data-structures-js
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:
- Fork the repo.
- Clone the repo to work locally with git clone repo-url.
- Install dependencies with yarn install.
- Develop suggested changes in a new branch (make sure you are using the prettier config, you can run yarn formator install the prettier extension if you are using vsc editor to format on save).
- Run yarn buildandyarn startto verify your changes doesn't has errors.
- Push your changes to your repo git push remote-repo branch-name.
- Make the pull request.
License
The MIT License. Full License here