摘要: ##28.找出字符串中第一个匹配项的下标 题目|文章 ##1.暴力求解 ####思路 对原串的每一个前缀进行搜索,判断是否和模式串相匹配。 ####实现 点击查看代码 class Solution { public: int strStr(string haystack, string needle 阅读全文
posted @ 2022-10-01 12:16 缩地 阅读(27) 评论(0) 推荐(0)