public static void Part2(string[] input) { Helper.PrintChallengePart("Part 2"); BaggageProcessor processor = new BaggageProcessor(input); int count = processor.CountInnerBags("shiny gold"); Console.WriteLine("Count: " + count); }
public static void Part1(string[] input) { Helper.PrintChallengePart("Part 1"); BaggageProcessor processor = new BaggageProcessor(input); List <Bag> parentBags = processor.FindOuterParentBags("shiny gold"); Console.WriteLine("Count: " + parentBags.Count()); }
public void Day7Part2Bonus() { // Arrange string[] input = Helper.ParseInput(@"Inputs\\Day7_exampleBonus.txt"); //Act BaggageProcessor processor = new BaggageProcessor(input); int count = processor.CountInnerBags("shiny gold"); //Assert Assert.AreEqual(126, count); }
public void Day7Part1() { // Arrange string[] input = Helper.ParseInput(@"Inputs\\Day7_example.txt"); //Act BaggageProcessor processor = new BaggageProcessor(input); List <Bag> parentBags = processor.FindOuterParentBags("shiny gold"); //Assert Assert.AreEqual(4, parentBags.Count); }