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()); }
private int SolvePart2() { var validator = new PassportValidator(); return(Data.Count(l => validator.IsValid(l))); }