dsawithjs
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

dsawithjs

Data structures with js

Installation

npm install dsawithjs

or

yarn add dsawithjs

Usage

import { Queue } from "dsawithjs";
let q1 = new Queue([1, 1, 23, 4]);

// empty queue
const queue = new Queue<number>();

// from an array
const queue = new Queue<number>([1, 2, 3]);

// empty queue
const queue = Queue.fromArray<number>([]);

// with elements
const list = [10, 3, 8, 40, 1];
const queue = Queue.fromArray<number>(list);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i dsawithjs

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

60.8 kB

Total Files

6

Last publish

Collaborators

  • rvuyyuru