Optional prev: null | SinglyLinkedListNode<NodeVal>Optional next: null | SinglyLinkedListNode<NodeVal>Optional list: null | SinglyLinkedList<NodeVal>Protected _listProtected _nextProtected _prevProtected _valThe function inserts a new node with the given value after the current node in a singly linked list.
The parameter val is the value of the node that you want to insert after the current node.
The method is returning a SinglyLinkedList
The insertBefore function inserts a new node with the given value before the current node in a singly linked list.
The parameter "val" is of type "NodeVal". It represents the value of the node that you want to insert before the current node.
The method is returning a SinglyLinkedList
The remove() function removes a node from a singly linked list.
The remove() method is returning a SinglyLinkedListNode
Generated using TypeDoc
data-structure-typed
Author
Tyler Zeng
Copyright
Copyright (c) 2022 Tyler Zeng zrwusa@gmail.com
License
MIT License