Created
February 10, 2018 18:46
-
-
Save tarlanahad/0b2f180237c09648063e10774f132760 to your computer and use it in GitHub Desktop.
This file contains 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
private Node RightLeftRotate(Node grandParentNode) { | |
grandParentNode.Right = RightRotate(grandParentNode.Right); | |
return LeftRotate(grandParentNode); | |
} | |
private Node LeftRightRotate(Node grandParentNode) { | |
grandParentNode.Left = LeftRotate(grandParentNode.Left); | |
return RightRotate(grandParentNode); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment