A Deno port of x3-linkedlist
A doubly linked list (Bi-directional) implementation
A linked list is a common data structure made of a chain of nodes in which each node contains a value and a pointer to the next node in the chain.
The head pointer points to the head node, and the tail element of the list points to null. When the list is empty, the head pointer points to null.
Run
import { LinkedList, LinkedListItem } from "https://raw.githubusercontent.com/dmpjs/linkedlist/v1.1.2/mod.ts import from github as raw data
import { LinkedList, LinkedListItem } from "https://deno.land/x/linkedlist@v1.1.2/mod.ts If module is uploaded into deno.land
import { LinkedList } from "https://raw.githubusercontent.com/dmpjs/linkedlist/v1.1.2/mod.ts
const list = new LinkedList([1, 2, 3, 4]);
console.log("content:", list.join(" -> "));
Run
$ deno test test.ts
To run all tests.
This library follows semantic versioning, and additions to the code ruleset are performed in major releases.
Please have a look at CHANGELOG.md
.
Please have a look at CONTRIBUTING.md
.
Please have a look at CODE_OF_CONDUCT.md
.
This package is licensed using the MIT License.
Please have a look at LICENSE.md
.