Retrieves the element at given index
Time complexity: O(n) Space complexity: O(1)
Retrieves the node at given index
Time complexity: O(n) Space complexity: O(1)
Inserts a new node on a specified position
Time complexity: O(n) Space complexity: O(1)
Removes a node from the end of the list
Time complexity: O(1) Space complexity: O(1)
Adds a node to the end of the list
Time complexity: O(1) Space complexity: O(1)
the size of the list
Removes a node at specified position
Time complexity: O(n) Space complexity: O(1)
Reverses the list
Time complexity: O(n) Space complexity: O(1)
Updates the value of a node on a provided position
Time complexity: O(n) Space complexity: O(1)
Removes a node from the beginning of the list
Time complexity: O(1) Space complexity: O(1)
Overrides the generic toString method
Time complexity: O(n) Space complexity: O(n)
Adds a new node to the beginning of the list
Time complexity: O(1) Space complexity: O(1)
the size of the list
Creates a DoublyLinkedList from an array
Time complexity: O(n) Space complexity: O(n)
Generated using TypeDoc
Implement the iterable protocol