Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/datastructure/linkedList/doubly/doublyLinkedList.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@1.0.0/linkedList/doubly/doublyLinkedList.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>)
log()
prepend(data: DataType<any>)
remove(key: string | number)
search(key: string | number)
update(key: string | number, newValue: any)