摘要: Palindrome Numbertime=434ms负数不是回文数public class Solution { public boolean isPalindrome(int x) { int palindrome=0; int revers=x; ... 阅读全文
posted @ 2015-03-26 11:16 懒人部落 阅读(210) 评论(0) 推荐(0) 编辑
摘要: String to Integer (atoi)time=272ms accepted需考虑各种可能出现的情况public class Solution { public int atoi(String str) { int length=str.length(); ... 阅读全文
posted @ 2015-03-26 10:50 懒人部落 阅读(280) 评论(0) 推荐(0) 编辑