// There is a more efficient way, this is just brute forcing :( public static long Part2(IEnumerable <string> rawInputs) { var ticketTracker = new TicketTracker(rawInputs); // So we know which tickets are valid ticketTracker.GetErrorRate(); return(ticketTracker.GetDepartureAnswer()); }
public static int Part1(IEnumerable <string> rawInputs) { var ticketTracker = new TicketTracker(rawInputs); return(ticketTracker.GetErrorRate()); }