Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rsginer/ts-data-structures


https://github.com/rsginer/ts-data-structures

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## DataStructures

## LinkedList

example usage

```js
// Constructors
const LinkedNode = DataStructures.LinkedListNode;
const LinkedList = DataStructures.LinkedList;

// run
const nextNode = new LinkedNode(2);
const node = new LinkedNode(1);
const otherNode = new LinkedNode(3);

node.pointTo(nextNode);

const list = new LinkedList(node);

list.add(otherNode);
```