Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 29th, 2020 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void MovieTree::leftRotation(TreeNode* curr)
  2. {
  3.     TreeNode*x = curr;
  4.     TreeNode*xp = x->parent;
  5.     TreeNode*y = x->rightChild;
  6.     TreeNode*yl = y->leftChild;
  7.     if(xp)
  8.         xp->leftChild==x ? xp->leftChild=y : xp->rightChild=y;
  9.     y->parent=xp;
  10.     y->leftChild=x;
  11.     x->rightChild=yl;
  12.     if(yl)
  13.         yl->parent=x;
  14.     x->parent=y;
  15.     if(y->parent==NULL)
  16.         root=y;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top