Example #1
0
        public void Part2A()
        {
            const string instructions = "3,26,1001,26,-4,26,3,27,1002,27,2,27,1,27,26,27,4,27,1001,28,-1,28,1005,28,6,99,0,0,5";
            var          permutation  = new List <int> {
                9, 8, 7, 6, 5
            };
            var solver    = new Day07();
            var computers = solver.CreateComputers(instructions);
            var output    = new Day07().GetOutputForPermutation(computers, permutation);

            output.ShouldBe(139629729);
        }