Beispiel #1
0
        private static string SolvePart2(List <string> input)
        {
            var passports = ParsePassports(input);

            var validator = new PassportValidator(RequiredFields, OptionalFields, CreateValidationRules());

            return(passports.Count(x => validator.IsValid(x)).ToString());
        }
Beispiel #2
0
        private int SolvePart2()
        {
            var validator = new PassportValidator();

            return(Data.Count(l => validator.IsValid(l)));
        }