public List <RBTreeNode <TKey> > CopyToList(RBTree <TKey> tree) { List <RBTreeNode <TKey> > nodesList = new List <RBTreeNode <TKey> >(); Traverse(tree.Root, nodesList); return(nodesList); }
public static void Main(string[] args) { Console.WriteLine("Hello World!"); RBTree <int> tree = new RBTree <int>(); tree.Add(1); tree.Add(2); tree.Add(3); tree.Add(4); tree.Add(5); tree.Add(6); tree.Add(7); tree.Add(8); tree.Add(9); tree.Add(10); tree.Delete(3); }