예제 #1
0
        protected override void SolvePartTwo()
        {
            var aaStart = new RecursiveDonutSearchNode(graph, "AA:OUT", 0, "ZZ:OUT", 0);
            var zzEnd   = Search <HeapPriorityQueue <SearchNode> > .Execute(aaStart);

            resultPartTwo = zzEnd.cost.ToString();
        }
예제 #2
0
 public RecursiveDonutSearchNode(DonutGraph graph, string portal, int layer, string target, int cost, RecursiveDonutSearchNode parent = null) : base(cost, parent)
 {
     this.graph  = graph;
     this.portal = portal;
     this.layer  = layer;
     this.target = target;
 }