Jacly  

2012年1月14日

摘要: 前几天一公司的面试题。感觉挺好玩,自己写了个,在这里记录下。 static string GetThree(string str1,string str2) { //取到最大数的位数长度 int MaxLength = str1.Length; if (str2.Length > str1.Length) {//最大数一定是str1,如果str2大 则交换两个数 string temp = str1; str1 = str2; str2 = temp; MaxLength = str1.Length; } List<string[]> list = new List<s 阅读全文
posted @ 2012-01-14 23:19 Jacly 阅读(212) 评论(0) 推荐(0)