leetcode2sumc Leetcode 力码
leetcode 2和c力码回文leetcode第9题public boolean isPalindrome(int x) { if(x<0 xss=removed x!=0)){ return false; } int reverNumber>reverNumber){ reverNumber=reverNumber*10+x; x/=10; } return x==reverNumber || x==reverNumber/10; }回文字符串,leetcode第125题public boolean isPalindrome(String s) { int n=s.length(); int left=0; int right=n-1; while(left
用户评论