From 3f1ae23bd739298f0973caf56d6d03ba7c302064 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 6 Mar 2017 15:56:48 +0300 Subject: [PATCH] Debug info added --- WhiteRabbit/Program.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/WhiteRabbit/Program.cs b/WhiteRabbit/Program.cs index 3886a0b..e8a378c 100644 --- a/WhiteRabbit/Program.cs +++ b/WhiteRabbit/Program.cs @@ -17,9 +17,17 @@ public static void Main() { var processor = new Processor("poultry outwits ants", 3); + var results = new List(); foreach (var phrase in processor.GeneratePhrases(ReadInput())) { + var hash = GetMd5Hash(phrase); Console.WriteLine(GetMd5Hash(phrase) + ": " + phrase); + results.Add(phrase + ": " + hash); + } + + foreach (var result in results.OrderBy(line => line)) + { + Console.WriteLine(result); } }