namastey-linked-list

1.1.3 • Public • Published

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();

Package Sidebar

Install

npm i namastey-linked-list

Weekly Downloads

1

Version

1.1.3

License

ISC

Unpacked Size

3.62 kB

Total Files

3

Last publish

Collaborators

  • namasteyduniya