Пример #1
0
        public void testSpiralGrid_ManhattanDistance(long steps, long expectedDist)
        {
            var spiralGrid = new SpiralGrid(steps);

            Assert.Equal(expectedDist, spiralGrid.ManhattanDistance());
        }
Пример #2
0
        public string PartA()
        {
            var spiral = new SpiralGrid(Input);

            return(spiral.ManhattanDistance().ToString());
        }