linked-list-ksinghj
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i linked-list-ksinghj

Weekly Downloads

1

Version

1.0.8

License

ISC

Unpacked Size

13 kB

Total Files

10

Last publish

Collaborators

  • ksjabanda