From e6f3beb3e62315faf881859561fe7830b73f2daf Mon Sep 17 00:00:00 2001 From: Allen <2439506288@qq.com> Date: Thu, 8 Sep 2022 08:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=20=E5=AE=9E=E6=8E=A7=E7=BA=BFstrstr=E9=A2=98=E7=9B=AE=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems/0028.实现strStr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/problems/0028.实现strStr.md b/problems/0028.实现strStr.md index 271822dc..84ce7750 100644 --- a/problems/0028.实现strStr.md +++ b/problems/0028.实现strStr.md @@ -9,7 +9,7 @@ # 28. 实现 strStr() -[力扣题目链接](https://leetcode.cn/problems/implement-strstr/) +[力扣题目链接](https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/) 实现 strStr() 函数。 @@ -699,7 +699,7 @@ class Solution(object): if haystack[i:i+n]==needle: return i return -1 -``` +``` ```python // 方法一 class Solution: