def firstUniqChar(self, s):
:type s: str
list1= % used to save the numbers of each element
index1= %used to save the index of the element whose occurance number is 1
for each in set(s):
if 1 not in list1:
solution for python (98ms)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.