Leetcode 28. 找出字符串中第一个匹配项的下标 haystack = "sadbutsad", needle = "sad" 孙鹏宇 2023-11-09 47 阅读1分钟 28. 找出字符串中第一个匹配项的下标 - 力扣(LeetCode) 用for循环过了: