leetcode
wy455691826
这个作者很懒,什么都没留下…
展开
-
最长公共前缀
def longestCommonPrefix(self, strs): """ :type strs: List[str] :rtype: str """ if len(strs)==0: return "" if len(strs)==1:原创 2019-02-10 20:38:34 · 116 阅读 · 0 评论 -
无重复字符的最长子串
def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ if len(s)==1 or len(s)==0:return len(s) m="&a原创 2019-02-10 20:38:20 · 119 阅读 · 0 评论