摘要:
public static int Traingle(int a, int b, int c){if (a <= 0 || b <= 0 || c <= 0){return 4;}int[] array = new int[3] {a,b,c };Array.Sort(array);int min, mid, max;min = array[0];mid = array[1];m... 阅读全文
摘要:
public static int[] RemoveDuplicated(int [] testArray){if (testArray.Length == 0){return testArray;}List<int> result = new List<int>();int i;int j;i = 1;j = 0;int temp = testArray[0];resul... 阅读全文