reading-notes

Linked Lists

A linked list is a sequence of nodes that contain some data and a pointer to other nodes. Each node points to the next node in the link.

Terminology

singly –> there is only one reference, and the reference points to the next node in a linked list.

doubly –> there is a reference to both the next and previous node.

node –> individual items/links that live in a linked list. each node contains the data for each link.

next –> property in the node that contains the reference to the next node.

head –> reference of type node to the first node in a linked list.

Current –> reference of type node to the node that is currently being looked at. when traversing, you create a new current variable at the head to guarantee you are starting from the beginning of the linked list.

What’s a Linked List, Anyway pt1