
String
文章平均质量分 68
不刷脸皮要刷题
这个作者很懒,什么都没留下…
展开
-
Longest Palindromic Substring
public class Solution { public String longestPalindrome(String s) { if (s == null) return null; int max = 0; String maxSub = ""; for (int beg = 0; beg < s.length();转载 2014-10-03 09:13:00 · 274 阅读 · 0 评论 -
Multiply String
public class Solution { public String multiply(String num1, String num2) { if (num1 == null || num2 == null) { return null; } int len1 = num1.length(); int l转载 2014-10-19 20:57:37 · 313 阅读 · 0 评论 -
String to Integer(atoi)
1, 考虑溢出 -》用long。 If the correct value is out of the range of representable values, INT_MAX (2147483647) or INT_MIN (-2147483648) is returned.2,转载 2014-10-19 21:08:03 · 366 阅读 · 0 评论