随笔分类 - leetcode
摘要:public class Solution { public boolean isValid(String s) { int length; do { length = s.length(); s = s.replace("()", "").replace("{}", "").replace("[]
阅读全文
摘要:class Solution { public boolean isPalindrome(int x) { String str = String.valueOf(x); int start = 0; int end = str.length() - 1; while(start < end){ i
阅读全文

浙公网安备 33010602011771号