望着时间滴答滴答的流过,我不曾改变过 . . .
摘要: ```java public int reverse(int x) { long res = 0; while (x != 0){ res = res 10 + x % 10; x /= 10; } if(res = Integer.MAX_VALUE || res 阅读全文
posted @ 2019-04-06 15:41 whyaza 阅读(126) 评论(0) 推荐(0) 编辑
摘要: ```java public String longestPalindrome(String s) { String rs = ""; int res = 0; for(int i = 0; i= 0 && s.charAt(i) == s.charAt(left)) left --; while(right = 0 &... 阅读全文
posted @ 2019-04-06 11:57 whyaza 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 自己写的: java if(numRows == 1) return s; int ll = s.length() / 2 + 1; Character tc[] = new Character[numRows ll]; int i = 0, j = 0; boolean down = true; 阅读全文
posted @ 2019-04-06 10:59 whyaza 阅读(109) 评论(0) 推荐(0) 编辑