Example #1
0
        public void RunPart2()
        {
            var part1InvalidNumber  = DataDecryption.FindInvalidNumber(Numbers, Preamble);
            var contiguousNumberSet = DataDecryption.FindContiguousNumberSetMatchesSum(part1InvalidNumber, Numbers);
            var sum = contiguousNumberSet.Min() + contiguousNumberSet.Max();

            Console.WriteLine($"Encryption weakness: {sum}");
        }
Example #2
0
 public void RunPart1()
 {
     Console.WriteLine($"Number does not match expected property: {DataDecryption.FindInvalidNumber( Numbers, Preamble )}");
 }