CircularLinkedList

CircularLinkedList

Class implements circular bidirectional linked list

Constructor

new CircularLinkedList()

Source:

Methods

append(element) → {CircularLinkedList}

Append new element to the end of the list
Source:
Parameters:
Name Type Description
element
Returns:
Type:
CircularLinkedList

insert(newElement, elementBefore) → {CircularLinkedList}

Insert new element to the list after elementBefore
Source:
Parameters:
Name Type Description
newElement
elementBefore
Returns:
Type:
CircularLinkedList

remove(element) → {CircularLinkedList}

Remove element from the list
Source:
Parameters:
Name Type Description
element
Returns:
Type:
CircularLinkedList