Adds a node to the end of a singly linked list.
The node's next pointer is reset to null, so it brings no former successor with it.
next
null
O(1)
The type of the list.
The list instance.
The node to add.
Adds a node to the end of a singly linked list.
The node's
nextpointer is reset tonull, so it brings no former successor with it.O(1)O(1)