Home > Back-end >  Tail interpolation based singly linked lists related issues
Tail interpolation based singly linked lists related issues

Time:09-15

As shown in figure, r and the head is how to establish contact? A NULL is a public address?

CodePudding user response:

NULL is 0, an invalid value,

CodePudding user response:

Red (2) when the head is NULL to p address is assigned to the head
When the head not accommodate node will be the new node p
in the headIf the head already contains the node will be p r is list in the r tail node at the end of the statement with p in r r and head in the first insert the new node is through p links

CodePudding user response:

Singly linked list data structure on data sort http://bbs.csdn.net/topics/392201633

CodePudding user response:

NULL are commonly used to initialize the pointer part of the structure, also used in the list at the end of the tail logo,

  • Related