We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46ff2f2 commit 022ef83Copy full SHA for 022ef83
面试题01.01.判定字符是否唯一/面试题01.01-判定字符是否唯一.py
@@ -0,0 +1,7 @@
1
+class Solution(object):
2
+ def isUnique(self, astr):
3
+ """
4
+ :type astr: str
5
+ :rtype: bool
6
7
+ return len(set(astr)) == len(astr)
0 commit comments