【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
相關文章
相關標籤/搜索