LeetCode 28. Implement strStr()(字符串匹配问题)

题目描述:c++     Implement strStr().     Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.算法 例子:数组 Input: haystack = "hello", needle = "ll" Output: 2
相关文章
相关标签/搜索