public void Examples(string[] buses, long expTimestamp) { var calc = new BusCalculator(); var result = calc.FindEarliestTimestampForSubsequentDepartures(buses); Assert.Equal(expTimestamp, result); }
public void Puzzle_13B() { var buses = PuzzleInputs.Puzzle13[1] .Split(',') .ToArray(); var calc = new BusCalculator(); var result = calc.FindEarliestTimestampForSubsequentDepartures(buses, 100_000_000_000_000); Assert.Equal(471_793_476_184_394, result); }