摘要: Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a... 阅读全文
posted @ 2015-05-23 18:25 江湖小妞 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Compare two version numbersversion1andversion2.Ifversion1>version2return 1, ifversion1version2返回 1, ifversion1str2.length?str1.length:str2.length; ... 阅读全文
posted @ 2015-05-23 10:50 江湖小妞 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1.String的split()方法。 String str.split("***")方法,用的是正则匹配。因此如果要用特殊字符来分割字符串时要用到转义字符。常用的分割字符的转义形式如下:String version1 = "345.4567";String[] str1 = version1.s... 阅读全文
posted @ 2015-05-23 10:16 江湖小妞 阅读(163) 评论(0) 推荐(0) 编辑