Leetcode 28. Implement strStr()

class Solution(object):
    def strStr(self, haystack, needle):
        """
        :type haystack: str
        :type needle: str
        :rtype: int
        """
        return haystack.find(needle)
        

 

posted @ 2019-03-22 06:20  周洋  阅读(154)  评论(0编辑  收藏  举报