摘要: public class Solution { public boolean isValid(String s) { int length; do { length = s.length(); s = s.replace("()", "").replace("{}", "").replace("[] 阅读全文
posted @ 2021-09-28 23:10 樱圃 阅读(21) 评论(0) 推荐(0) 编辑
摘要: class Solution { public boolean isPalindrome(int x) { String str = String.valueOf(x); int start = 0; int end = str.length() - 1; while(start < end){ i 阅读全文
posted @ 2021-09-28 19:46 樱圃 阅读(11) 评论(0) 推荐(0) 编辑