Exemple #1
0
        // 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());
        }
Exemple #2
0
        public static int Part1(IEnumerable <string> rawInputs)
        {
            var ticketTracker = new TicketTracker(rawInputs);

            return(ticketTracker.GetErrorRate());
        }