随笔分类 -  leetcode_未分类

摘要:题目:https://leetcode-cn.com/problems/add-binary/ 自己的代码: public String addBinary(String a, String b) { String r=""; int flag=0; int ap=a.length(); int b 阅读全文
posted @ 2021-09-30 09:30 wltree 阅读(121) 评论(0) 推荐(0)
摘要:题目:https://leetcode-cn.com/problems/valid-palindrome/ 自己写的代码: public boolean isPalindrome(String s) { s=s.replaceAll("[^a-zA-Z0-9]",""); String s1 ="" 阅读全文
posted @ 2021-09-29 09:56 wltree 阅读(84) 评论(0) 推荐(0)