1.5.1 • Published 4 months ago

ts-datastr v1.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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

4 months ago

1.5.0

4 months ago

1.4.3

4 months ago

1.4.2

4 months ago

1.3.5

4 months ago

1.4.1

4 months ago

1.3.4

4 months ago

1.3.3

4 months ago

1.3.2

4 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.2

4 months ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.0

4 months ago

1.0.0

5 months ago