public void Example6Part2() { var input = new List <int> { 3, 2, 1 }; Day15.Solve(input, 30000000).Should().Be(18); }
public void Example7Part2() { var input = new List <int> { 3, 1, 2 }; Day15.Solve(input, 30000000).Should().Be(362); }
public void Example4Part2() { var input = new List <int> { 1, 2, 3 }; Day15.Solve(input, 30000000).Should().Be(261214); }
public void Example5Part2() { var input = new List <int> { 2, 3, 1 }; Day15.Solve(input, 30000000).Should().Be(6895259); }
public void Example3Part2() { var input = new List <int> { 2, 1, 3 }; Day15.Solve(input, 30000000).Should().Be(3544142); }
public void Example2Part2() { var input = new List <int> { 1, 3, 2 }; Day15.Solve(input, 30000000).Should().Be(2578); }
public void Example1Part2() { var input = new List <int> { 0, 3, 6 }; Day15.Solve(input, 30000000).Should().Be(175594); }
public void Solution1() { var input = new List <int> { 1, 12, 0, 20, 8, 16 }; Console.WriteLine(Day15.Solve(input, 2020)); }
public void ExamplePart1() { var input = new List <int> { 0, 3, 6 }; Day15.Solve(input, 2020).Should().Be(436); }