Retrieves the node at the specified index in a singly linked list.
O(n)
O(1)
The type of the list.
The list instance.
The zero-based index of the node to retrieve.
index
The node at the specified index, or undefined if the index is out of bounds.
undefined
Retrieves the node at the specified index in a singly linked list.
O(n)
O(1)