Skip to content

Instantly share code, notes, and snippets.

@hsnice16
Last active January 1, 2021 07:27
Show Gist options
  • Save hsnice16/69ada0d0bd279d3c18036cae113aeee8 to your computer and use it in GitHub Desktop.
Save hsnice16/69ada0d0bd279d3c18036cae113aeee8 to your computer and use it in GitHub Desktop.
Node structure for Binary Tree (in c++)
// c++
struct Node
{
int key; // value in node
Node *left, *right; // stores left/right child
bool rightThread; // stores right Thread for node exists or not
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment