Linkedlist dummy node? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Linkedlist dummy node?

In my project, I cannot use a dummy node, but I’m not exactly sure what that is. The head node is initialized to null. If I have a method where I have to traverse a linked list, is making a new node and setting it equal to head , a dummy node?

26th Sep 2019, 4:11 PM
Jamie Charles
1 Answer
+ 1
it is node without data, connected to head or tail
26th Sep 2019, 8:39 PM
zemiak