- 判断palindrome的1000以内的小tips
//optimizations
if(x<0) return false;
if(x<10) return true;
if(x%10==0) return false;
if(x<100&&x%11==0) return true;
if(x<1000&&((x/100)*10+x%10)%11==0) return true;
其中最后一个可以借鉴(x/100)*10+x%10)%11==0
只比较百位和个位的数字