主题
/** * @url https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/description/ * @description 实际考察kmp算法,// todo */ function strStr(haystack: string, needle: string): number { return haystack.indexOf(needle) }