示例#1
0
        public void ShouldSolve()
        {
            var target = new Day6();

            var result = target.CalculateCycles(new [] { 4, 10, 4, 1, 8, 4, 9, 14, 5, 1, 14, 15, 0, 15, 3, 5 });

            _output.WriteLine(result.ToString());
        }
示例#2
0
        public void Example1()
        {
            var target = new Day6();

            var result = target.CalculateCycles(new [] { 0, 2, 7, 0 });

            result.Should().Be(5);
        }