摘要: 012.匹配 匹配两个字符串 母串为 s 、子串为 t 当 t 在 s 中出现至少一次,匹配成功 匹配失败返回 -1 朴素匹配 当 t 的长度很短时,在 s 上枚举起点 int match(string &s,string &t){ int lt=t.length(); int ls=s.length(); fo 阅读全文
posted @ 2025-12-16 18:48 射杀百头 阅读(9) 评论(0) 推荐(0)