2. What is a linked list #

Created Tuesday 14 January 2020

There are 2 kinds of lists:

  1. Singly linked lists. Have the address of the next node.
  2. Douby linked lists. Have the address of the next and the previous node.

Doubt: Node * seems infinitely recursive. If it had been Node, it would be recursive. But Node* is not, it is just a pointer with a jump = sizeof(int + pointer), and jump is everything that a pointer stores, except of course the start address, which will be given by the OS. Node class, for linked list

Jargon:

  1. Head node. The first Node.
  2. Tail Node. The last Node. It points to NULL.