Files
PS/leetcode/28.py
Gyubin Han dede0dca01 leetcode
2025-02-19 14:09:55 +09:00

4 lines
110 B
Python

class Solution:
def strStr(self, haystack: str, needle: str) -> int:
return haystack.find(needle)