摘要:
class Solution { public int reverse(int x) { int rev = 0; while (x != 0) { int pop = x % 10; x /= 10; if (rev > Integer.MAX_VALUE/10 || (rev == Intege 阅读全文
摘要:
解题思路: 第一个方法是穷举,第二个方法是利用Map做,第二个方法一开始没想到,还是有点太年轻。 代码: 第一个代码: class Solution { public int[] twoSum(int[] nums, int target) { int[] ans = new int[2]; boo 阅读全文