Closed ninehills closed 6 years ago
https://leetcode.com/problems/implement-strstr/description/ Implement strStr().
Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
字符串子串搜索,两种思路:
问题
https://leetcode.com/problems/implement-strstr/description/ Implement strStr().
Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
思路
字符串子串搜索,两种思路:
解答