Ejemplo n.º 1
0
        public override void Run()
        {
            // become, bee, seem, certain, top
            var matrix = new char[, ]
            {
                { 'b', 'c', 'e', 'p' },
                { 'e', 'o', 'r', 'o' },
                { 'e', 'm', 't', 'n' },
                { 's', 'e', 'a', 'i' },
            };

            matrix.PrintMatrix();
            var trie = AssortedMethods.GetTrieDictionary();
            var list = Solve(matrix, trie.Root);

            Console.WriteLine("Words found");
            foreach (var word in list)
            {
                Console.Write($"{word}, ");
            }
            Console.WriteLine();
        }