//static void KAMI() //{ // var obj = new CareerCupQnA(); // int[,] array2D = new int[,] { { 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1}, // { 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1}, // { 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1}, // { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1}, // { 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1}, // { 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1}, // }; // obj.KAMI(array2D, array2D.GetUpperBound(0), array2D.GetUpperBound(1)); //} static void Permutation() { var obj = new CareerCupQnA(); obj.Permutation(new List <int> { 3, 39, 34, 5, 9 }, 0, 4); Console.WriteLine("Maximum number is {0}", obj.Max); }