【leetcode】最长公共前缀 Longest Common Prefix【python】

题目链接 class Solution(object): def longestCommonPrefix(self, strs): """ :type strs: List[str] :rtype: str """ if strs == []: return '' str = '' flag = 1 index
相关文章
相关标签/搜索