4 lines
110 B
Python
4 lines
110 B
Python
class Solution:
|
|
def strStr(self, haystack: str, needle: str) -> int:
|
|
return haystack.find(needle)
|