摘要: 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... 阅读全文
posted @ 2010-09-15 15:33 purplesun 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2010-09-15 15:31 purplesun 阅读(1265) 评论(1) 推荐(1) 编辑