leetcode:3_無重複字符的最長子串

解答:python3python class Solution: def lengthOfLongestSubstring(self, str): temp = '' length = 0 for i in str: if i not in temp: temp += i
相關文章
相關標籤/搜索