private string Del(string arg, SplayTree tree)
        {
            long i = Convert(long.Parse(arg));

            tree.Delete(i);
            return(null);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            SplayTree ss = new SplayTree();

            ss.Find(1);
            ss.Insert(1);
            ss.Find(1);
            ss.Insert(2);

            ss.Insert(1000000000);
            ss.Find(1000000000);
            ss.Delete(1000000000);
            ss.Find(1000000000);

            Console.WriteLine();
            Console.Read();
        }