GithubHelp home page GithubHelp logo

harshcasper / data-structures Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 18 KB

An NPM Package built for Developers to get a High-Level API Access to various Data Structures ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ—„๏ธ

JavaScript 100.00%
npm npm-package npm-module npm-scripts npmjs data-structures datastructures binary-search-tree linked-list priority-queue

data-structures's Introduction

Data-Structures

Logo

๐Ÿ“Œ Introduction

Data Structures is an NPM Package built for Developers to get a High-Level API Access to various Data Structures. This is my first NPM Package and this tool was developed for practising various Data Structures and was later wrapped as a Package and published on NPM.

The Package is available on NPM.

๐Ÿ’ฅ Installation

The Package can be installed by running the follow command on your Command Prompt/Shell:

$ npm install data_structure_models

After installation of the the Package, you can run the following script to validate if the Package is running fit and fine:

var dataStructureModels = require("data_structure_models");
var datastructures= new dataStructureModels();
var stack=datastructures.Stack();
stack.push(5);
stack.push(3);
stack.print();

This will print the Stack on the Console and you are free to experiment with the wide number of Data Structures available with the Package.

How to use the Package?

This Package has a lot of Data Structures which you can try out. Some of the Data Structures and their particular implementations have been listed below. We are taking the example of Binary Search Tree here. Binary search tree is a data structure that quickly allows us to maintain a sorted list of numbers.

To access Binary Search Trees, try out the following script:

var dataStructureModels = require("data_structure_models");
var datastructures= new dataStructureModels();
var bst=datastructures.BinarySerachTree();
bst.add(5);
bst.add(3);
bst.add(8);
console.log(bst.findMax())
// Output: 8

Besides these, other Data Structures that can be called and access using the package are:

  • Hash Table
  • Linked List
  • Priority Queue
  • Queue
  • Stack
  • Doubly Linked List
  • Queue using Linked List

๐Ÿ“œ LICENSE

ISC

data-structures's People

Contributors

harshcasper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

iakshatkumar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.