public static void Part1(string[] input) { Helper.PrintChallengePart("Part 1"); BusScheduler bus = new BusScheduler(input); int result = bus.CalculateWaitingTime(); Console.WriteLine("Result: " + result); }
public void Day13Part1() { // Arrange string[] input = Helper.ParseInput(@"Inputs\\Day13_example.txt"); //Act BusScheduler bus = new BusScheduler(input); int result = bus.CalculateWaitingTime(); //Assert Assert.AreEqual(295, result); }