<<< Doubly-linked vs. singly-linked | Index | >>> |
Should you always keep one pointer variable pointing to the head of a linked list?
Yes, if you have a Singly-linked list constructed from objects similar to Node:
No, if using Doubly-linked list or Circularly-linked:
Further reading: Wikipedia,
<<< Doubly-linked vs. singly-linked | Index | >>> |