Skip to content

Instantly share code, notes, and snippets.

@gabhi
Created April 11, 2014 18:24
Show Gist options
  • Save gabhi/10489904 to your computer and use it in GitHub Desktop.
Save gabhi/10489904 to your computer and use it in GitHub Desktop.
Right sibling
if (node->parent && node->parent->right) {
return node->parent->right;
} else {
return NULL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment