python leetcode 387. First Unique Character in a String

利用find函數能極大地減小運行時間web class Solution: def firstUniqChar(self, s): """ :type s: str :rtype: int """ c='qwertyuiopasdfghjklzxcvbnm' res=2**31-1 for n in c:
相關文章
相關標籤/搜索