LinkedList

1.0.3 • Public • Published

LinkedList

NPM version Downloads apache license

About

A Singly and Doubly Linked List

Installation

npm install LinkedList

Usage

var LinkedList = require("LinkedList");
var SinglyLinkedList = LinkedList.Singly();
var DoublyLinkedList = LinkedList.Doubly();

Features

  • Provides Linked list data structure.

Documentation

Methods


Example

list.add(10);
list.add(20);
list.add(30);
// 10 20 30
list.delete(10);
// 20 30
list.isExist(20); // Returns true, false otherwise
list.indexOf(30); // Returns 1 [0 Based], -1 for not found
list.length(); // Returns 2
 
list.each(function(item){
    console.log(item);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i LinkedList

Weekly Downloads

1

Version

1.0.3

License

Apache-2.0

Last publish

Collaborators

  • mahfuz