Skip to content

Instantly share code, notes, and snippets.

@hsnice16
Created January 1, 2021 08:17
Show Gist options
  • Save hsnice16/b04d1eaf1f54eb7e367323d009ad630d to your computer and use it in GitHub Desktop.
Save hsnice16/b04d1eaf1f54eb7e367323d009ad630d to your computer and use it in GitHub Desktop.
// adding thread
if (successor) // if successor is not NULL
{
// newNode stores data of new node
newNode->right = successor; // store successor value in right child of newNode
newNode->rightThread = true; // makes rightThread valur of new Node to true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment