1.1.3 • Published 1 year ago
namastey-linked-list v1.1.3
Linked List Package
This package implements a Linked List data structure with various methods.
Methods
append(value): Adds a new node to the end of the list.insertAt(value, position): Inserts a new node at a specific position.remove(value): Removes a node by its value.find(value): Finds a node by its value.printList(): Prints the list.getSize(): Gets the size of the list.
Usage
const LinkedList = require('namastey-linked-list');
const list = new LinkedList();
list.append(10);
list.append(20);
list.printList();