摘要:
Determine whether an integer is a palindrome. Do this without extra space.尝试用两头分别比较的方法,结果发现无法解决1000021这种问题 1 public class Solution { 2 public bool... 阅读全文
摘要:
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321一次通过,它的spoiler里面的提示有两个:1. 末尾为0的情况,这个考虑到了2.Did you notice that... 阅读全文
摘要:
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文