public GuardRecord ConsistentSleepyGuard() { //Find guard that sleeps at the same time the most often GuardRecords.Sort((x, y) => x.Stats.TopMinuteAsleepCount.CompareTo(y.Stats.TopMinuteAsleepCount)); var consistentSleepyGuard = GuardRecords.Last(); return(consistentSleepyGuard); }
public GuardRecord SleepiestGuard() { //Find guard that sleeps the most GuardRecords.Sort((x, y) => x.Stats.MinutesAsleep.CompareTo(y.Stats.MinutesAsleep)); var sleepyGuard = GuardRecords.Last(); return(sleepyGuard); }