public void Example()
        {
            var input = "5  1   9   5\r\n" +
                        "7  5   3\r\n" +
                        "2  4   6   8";

            CorruptionChecksum.CalculateCheckSum(input).Should().Be(18);
        }
Example #2
0
        static void Main(string[] args)
        {
            Console.WriteLine($"Day1 Answer: {InverseCaptcha.CalcSum()}");
            Console.WriteLine($"Day1 Part2 Answer: {InverseCaptcha.CalcSumPart2()}");

            var day2InputPuzzle = System.IO.File.ReadAllText("Day2\\InputPuzzleDay2.txt");

            Console.WriteLine($"Day2 Answer: {CorruptionChecksum.CalculateCheckSum(day2InputPuzzle)}");
            Console.WriteLine($"Day1 Part2 Answer: {CorruptionChecksum.CalculateCheckSum_Part2(day2InputPuzzle)}");

            Console.WriteLine($"Day3 Answer: {SpiralMemory.CalculateSteps(289326)}");


            if (Debugger.IsAttached)
            {
                Console.ReadKey();
            }
        }