Esempio n. 1
0
        public long ExecutePart2()
        {
            var seed   = XmasUtils.GetFirstNotValid(_input, 25);
            var vector = XmasUtils.GetRangeThatSums(_input, seed);

            return(vector.Min() + vector.Max());
        }
Esempio n. 2
0
 public long ExecutePart1()
 {
     return(XmasUtils.GetFirstNotValid(_input, 25));
 }