示例#1
0
 public static void Add(ref DisjointSet left, Range right)
 {
     // An add is a normal binary tree insertion,
     // followed by a splay of the inserted node to the root.
     left = (left == null) ? right : Splay(left.Insert(right));
     left.AssertWellOrdered();
 }
示例#2
0
 public static void Add(ref DisjointSet left, Range right)
 {
     // An add is a normal binary tree insertion,
     // followed by a splay of the inserted node to the root.
     left = (left == null) ? right : Splay(left.Insert(right));
     left.AssertWellOrdered();
 }