摘要:
前几天一公司的面试题。感觉挺好玩,自己写了个,在这里记录下。 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
阅读全文