@bhaireshm/algorithms

Doubly Linked List in TypeScript

This repository provides a TypeScript implementation of a doubly linked list data structure.

Installation

npm install @bhaireshm/algorithms

Usage of the DoublyLinkedList class

import { DoublyLinkedList } from "@bhaireshm/algorithms";

// Create a new doubly linked list
const list = new DoublyLinkedList<string>();

// Add nodes to the list
list.add("A");
list.add("B");
list.add("C");

// Print the list
console.log(list);

Generated using TypeDoc