public int GetMostLikelySleepingMinute() { return(Shifts .SelectMany(s => s.NapTimes) .SelectMany(n => n.SleepingMinutes) .GroupBy(m => m) .OrderByDescending(g => g.Count()) .First().Key); }
public int GetMostLikelySleepingMinute() { return(Shifts .SelectMany(s => s.NapTimes) .SelectMany(n => n.SleepingMinutes) .GroupBy(m => m) .OrderByDescending(g => g.Count()) .First().Key); }