Glossary term

What is dummy node? Meaning for developers

A throwaway node put in front of the real head, so every real node, even the head, has a node before it. You need no special case for changing the head. The answer is dummy.next.

Learn it properly · DSALesson 35: Building a Linked ListNodes and pointers (links to the next node), built from scratch.

All DSA terms

Related terms

← All glossary terms, A to Z