Skip to content

Commit af66c9c

Browse files
authored
Merge pull request #1 from shashafool/shashafool-patch-1
Create 莎莎.md
2 parents 2fa28f1 + 058a878 commit af66c9c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

2018.12.1-leetcode387/莎莎.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```
2+
class Solution:
3+
def firstUniqChar(self, s):
4+
"""
5+
:type s: str
6+
:rtype: int
7+
"""
8+
result = -1
9+
j = 1
10+
for i in s:
11+
if i not in s[j:]+s[:j-1]:
12+
result = s.find(i)
13+
break
14+
j+=1
15+
return result
16+
```

0 commit comments

Comments
 (0)