DEV Community

Discussion on: Solution: Remove Nth Node From End of List

 
seanpgallivan profile image
seanpgallivan

The variable head just contains a pointer to the start of the linked list. It doesn't contain the entire linked list. So any changes made to the nodes of the list and their connections will affect a traversal of the list starting at head.

Thread Thread
 
chandub15 profile image
chandub15

Got it. Thanks for your reply 😃