linked-list
This repo was created as practice from Rob Edward's video lectures Data Structures.
I made it available as an npm module to be used in further practice repos for the other data structures.
https://www.npmjs.com/package/linked-list-ksinghj
Installation
Yarn
yarn add linked-list-ksinghj
npm
npm i linked-list-ksinghj
Usage
import { LinkedList, ListNode } from 'linked-list-ksinghj'
const myNode = new ListNode('some value')
const anotherNode = new ListNode('another value')
const myList = new LinkedList()
myList.addFirst(myNode)
myList.addLast(anotherNode)
myList.contains(myNode)