We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e412460 + edf8a94 commit 0061dabCopy full SHA for 0061dab
solutions/python/all-unique-characters.py
@@ -0,0 +1,10 @@
1
+# Check if a string is composed of all unique characters
2
+# author: Matt Box
3
+
4
+def all_unique(string):
5
+ letters = sorted(string)
6
+ for i in range(len(letters) - 1):
7
+ if letters[i] == letters[i + 1]:
8
+ return False
9
+ return True
10
0 commit comments