摘要:
```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
阅读(132)
评论(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
阅读(81)
评论(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
阅读(113)
评论(0)
推荐(0)

浙公网安备 33010602011771号