static void Main(string[] args) { RBT1 <int> rbt = new RBT1 <int>(); int[] a = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; for (int i = 0; i < a.Length; i++) { rbt.Add(a[i]); } Console.WriteLine(rbt.MaxHeight()); Console.Read(); }
public RBT1Set() { rbt = new RBT1 <E>(); }