public void somethingorotherduh120() { var sut = new Problem24(4); var result = sut.workoutMaxValue(5); Assert.That(result, Is.EqualTo(120)); }
private static void Main(string[] args) { //int[] input = { -1, 150, 190, 170, -1, -1, 160, 180 }; //Console.Write(string.Join(",", Problem12.sortByHeight(input))); //Console.WriteLine(); //int[] input = { 50, 60, 60, 45, 70 }; //string[] picture = { "abc", "ded" }; //Console.Write(string.Join(",\n", Problem15.addBorder(picture))); int[] input1 = { 2, 3 }; int[] input2 = { 1, 4, 10, 6, 2 }; int[][] image = new int[][] { new int [] { 1, 1, 1 }, new int [] { 1, 7, 1 }, new int [] { 1, 1, 1 } }; int[][] image2 = new int[][] { new int [] { 36, 0, 18, 9 }, new int [] { 27, 54, 9, 0 }, new int [] { 81, 63, 72, 45 } }; //Console.WriteLine("Original Image"); //Problem23.toString(image2); //Console.WriteLine(); //Console.WriteLine("Blurred Image"); //int[][] blurred = Problem23.boxBlur(image2); //Problem23.toString(blurred); //Console.WriteLine(); bool[][] matrix = new bool[][] { new bool [] { true, false, false }, new bool [] { false, true, false }, new bool [] { false, false, false } }; Console.WriteLine(); int[][] result = Problem24.minesweeper(matrix); Problem24.toString(result); }
public void Problem24_Return_Result_2783915460() { string act = Problem24.LexicographicPermutations(); Assert.True(act.Equals("2783915460")); }
public void Solution_ReturnsSolution() { var result = Problem24.Solution(); Assert.AreEqual("2783915460", result); }
public void SolveForLengthTest(int length, int permutation, string expected) { Assert.AreEqual(expected, Problem24.SolveForLength(length, permutation)); }