示例#1
0
        public SplayNode <T> RotateRight()
        {
            SplayNode <T> n1 = left;

            left     = n1.right;
            n1.right = this;
            return(n1);
        }
示例#2
0
        public SplayNode <T> RotateLeft()
        {
            SplayNode <T> n1 = right;

            right   = n1.left;
            n1.left = this;
            return(n1);
        }