public static void driver()
 {
     Stopwatch sw = new Stopwatch();
     sw.Start();
     string s = "stone";
     string target = "mxoney";
     GraphLadder graph = new GraphLadder(s);
     graph.ladder(target);
     sw.Stop();
     Console.WriteLine("Time taken with graphs = {0} ms", sw.ElapsedMilliseconds);
 }
Exemple #2
0
        public static void driver()
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();
            string      s      = "stone";
            string      target = "mxoney";
            GraphLadder graph  = new GraphLadder(s);

            graph.ladder(target);
            sw.Stop();
            Console.WriteLine("Time taken with graphs = {0} ms", sw.ElapsedMilliseconds);
        }