Skip to content

Commit 3071086

Browse files
authored
Update Solution.py
1 parent f00f42d commit 3071086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solution/0028.Implement strStr()/Solution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ def strStr(self, haystack, needle):
99
p = i
1010
q = 0
1111
while p < len(haystack) and q < len(needle) and haystack[p] == needle[q]:
12-
p+=1
13-
q+=1
12+
p += 1
13+
q += 1
1414

1515
if q == len(needle):
1616
return i

0 commit comments

Comments
 (0)