Created
January 1, 2021 08:17
-
-
Save hsnice16/b04d1eaf1f54eb7e367323d009ad630d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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