コード例 #1
0
        public static void Part2(string[] input)
        {
            Helper.PrintChallengePart("Part 2");

            VoltageAdaptor volts  = new VoltageAdaptor(input);
            ulong          result = volts.CalculateCombinations();

            Console.WriteLine("Combos: " + result);
        }
コード例 #2
0
        public void Day10Part2()
        {
            // Arrange
            string[] input = Helper.ParseInput(@"Inputs\\Day10_example.txt");

            //Act
            VoltageAdaptor volts  = new VoltageAdaptor(input);
            ulong          result = volts.CalculateCombinations();

            //Assert
            Assert.AreEqual((ulong)8, result);
        }