python算法:最长公共前缀

class Solution:
    def longestCommonPrefix(self, strs):
        """
        :type strs: List[str]
        :rtype: str
        """
        if len(strs)==0:
            return ''
        x=0
        y=0
        while x

你可能感兴趣的:(刷题,注意事项,python)