public static void Part2(string[] input) { Helper.PrintChallengePart("Part 2"); VoltageAdaptor volts = new VoltageAdaptor(input); ulong result = volts.CalculateCombinations(); Console.WriteLine("Combos: " + result); }
public static void Part1(string[] input) { Helper.PrintChallengePart("Part 1"); VoltageAdaptor volts = new VoltageAdaptor(input); int result = volts.CalculateDifferences(); Console.WriteLine("Volts Difference: " + result); }
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); }
public void Day10Part1Bonus() { // Arrange string[] input = Helper.ParseInput(@"Inputs\\Day10_exampleBonus.txt"); //Act VoltageAdaptor volts = new VoltageAdaptor(input); int result = volts.CalculateDifferences(); //Assert Assert.AreEqual(220, result); }