Exemplo n.º 1
0
        private static void Day13()
        {
            var d13 = new Day13.Day13(1350);

            Console.WriteLine($"Shortest distance = {d13.FindShortestPath(31, 39)}");
            Console.WriteLine($"Number of locations at distance 50 = {d13.FindNumberOfLocations(50)}");
        }
Exemplo n.º 2
0
        public void ShortestPathIsCorrect()
        {
            var sut      = new AdventOfCode2016.Day13.Day13(10);
            var expected = 11;
            var actual   = sut.FindShortestPath(7, 4);

            Assert.Equal(expected, actual);
        }