1.1.3 • Published 9 months ago

namastey-linked-list v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

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

9 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago