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:
相关文章
相关标签/搜索