摘要: KMP算法 题目:https://www.luogu.com.cn/problem/P3375 public static void kmp_search(String s1, String s2){ if (s2.isEmpty()) System.out.println("-1"); int n 阅读全文
posted @ 2021-10-05 17:05 wltree 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 题目:https://leetcode-cn.com/problems/ti-huan-kong-ge-lcof/ 我的代码: public static String replaceSpace(String s) { if (s == "") return null; return s.repla 阅读全文
posted @ 2021-10-05 10:31 wltree 阅读(27) 评论(0) 推荐(0) 编辑