Skip to main content
Module

x/datastructure/mod.ts>DoublyLinkedList

Implement different Data Structures using TypeScript. Deno Third-party Module.
Go to Latest
class DoublyLinkedList
implements LinkedListApi
import { DoublyLinkedList } from "https://deno.land/x/datastructure@0.0.6/mod.ts";

Constructors

new
DoublyLinkedList()

Properties

private
head: null | NodeType
private
tail: null | NodeType
size: number

Methods

add(data: DataType<any>, position: number)
append(data: DataType<any>)
prepend(data: DataType<any>)
remove(key: string | number)
search(key: string | number)
update(key: string | number, newValue: any)