March 2019
Intermediate to advanced
336 pages
9h 9m
English
The LinkedList class has the headNode pointer as its property. By traversing to nextNode from headNode, you can iterate through the linked list, as shown in the following code:
// LinkedList classtype LinkedList struct { headNode *Node}
The different methods of the LinkedList class, such as AddtoHead, IterateList, LastNode, AddtoEnd, NodeWithValue, AddAfter, and the main method, are discussed in the following sections.
Read now
Unlock full access