Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
build
src
README.md
package.json
tsconfig.linkedlist.json

README.md

DataStructures TS

Linked List


The Linked List is a linear sttructure of Nodes. Each node is a seperate object. Each data item (Node) is made with a relationsip to its nextNode.

This is the Linked List Package of Data Structures TS.


Setup

The commmands below provide package manager install instructions. Unpk support will be added momentarily.

NPM

npm i @dsts/linked-list -D

Yarn

yarn add @dsts/linked-list -D

Usage

New Linked Lists can be created by importing the Linked List and setting them up similarily to the example below.

import LinkedList from '@dsts/linked-list'

const List = new LinkedList()
List.appendNode('foo')
List.appendNode('bar')

Furthermore, the Linked List accepts nodes with a name and data. This creates the ability to find Nodes and also contain useful data with them.

import LinkedList from '@dsts/linked-list'

const List = new LinkedList()
List.apendNode('foo', { .., data})
List.apendNode('foo', { .., otherdata})

API

Linked List Illustration


Resources

The list below provides links to other helpful tools for understanding the Linked List data structure.