1.5.1 • Published 10 months ago

ts-datastr v1.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

DATA STRUCTURES Package based on JS data structures

Installation

npm i ts-datastr

Latest version

1.5.0

Cointains

  • Stack
  • Deque
  • Queue
  • Linked List
  • Doubly Linked List
  • Sorted Linked List

Examples

import { Deque, Queue, Stack }  from 'ts-datastr'

const stack = new Stack();
const queue = new Queue();
const deque = new Deque();

stack.push(1);
queue.enqueue('foo');
queue.enqueue(12);
deque.addBack(32);
deque.addFront('foo');
deque.addBack('another string');


console.log(stack.toString()); // 1
console.log(stack.isEmpty());  // false
console.log(queue.size());     // 2
console.log(queue.toString()); // foo, 12
console.log(deque.toString()); // foo, 32, another string
1.5.1

10 months ago

1.5.0

10 months ago

1.4.3

10 months ago

1.4.2

10 months ago

1.3.5

10 months ago

1.4.1

10 months ago

1.3.4

10 months ago

1.3.3

10 months ago

1.3.2

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago