예제 #1
0
        public int SolvePuzzlePart2(string input)
        {
            List <StorageNode> nodes = new List <StorageNode>();
            int blockerLeft, blockerTop;

            ParseInputToNodes(input, nodes, out blockerLeft, out blockerTop);
            PuzzleSolver solver = new PuzzleSolver(nodes, blockerLeft, blockerTop);

            return(solver.ShortestPath());
        }