public static string OutputSecond() { var sample = Helpers.ReadFile("Inputs\\02.txt"); var entries = sample.Select(s => SplitEntry(s)); return(ValidPasswordsInArray(SecondParser, entries).ToString()); }
public static string OutputSecond() { var sample = Helpers.ReadFile("Inputs\\04.txt"); var passports = ParsePassports(sample); return(passports.Count(p => p.IsValid()).ToString()); }
public static string OutputFirst() { var sample = Helpers.ReadFile("Inputs\\04.txt"); var passports = ParsePassports(sample); return(passports.Count(p => p.AllRequiredField()).ToString()); }
public static string OutputSecond() => GetTimeStampingChinese(Helpers.ReadFile("Inputs\\13.txt")[1]).ToString();
public static string OutputFirst() => GetWaitingMinute(Helpers.ReadFile("Inputs\\13.txt")).ToString();
public static string OutputSecond() => GetSeatsOccupiedNew(Helpers.ReadFile("Inputs\\11.txt")).ToString();
public static string OutputFirst() => GetSeatsOccupied(Helpers.ReadFile("Inputs\\11.txt")).ToString();
public static string OutputSecond() => CountEveryoneAnsweredYes(Helpers.ReadFile("Inputs\\06.txt")).ToString();
public static string OutputFirst() => CountAnyoneAnsweredYes(Helpers.ReadFile("Inputs\\06.txt")).ToString();