Beispiel #1
0
        private static void Main(string[] args)
        {
            var result1 = Puzzle06.CountTask1(PuzzleInput.ToPuzzle6Input());
            var result2 = Puzzle06.CountTask2(PuzzleInput.ToPuzzle6Input());

            Console.WriteLine($"Count task 1: {result1}");
            Console.WriteLine($"Count task 2: {result2}");
        }
Beispiel #2
0
        public void Task2_Count()
        {
            var stringInput = @"abc

a
b
c

ab
ac

a
a
a
a

b";

            var maxId = Puzzle06.CountTask2(stringInput.ToPuzzle6Input());

            Assert.Equal(6, maxId);
        }