1.0.8 • Published 2 years ago

linked-list-ksinghj v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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) // true

// all the other linked list methods available on the `LinkedList` class
// the `LinkedList` class is of course extendable so yyou can customise for your needs.
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago