Last active
January 3, 2019 12:25
-
-
Save zahash/ba1fadea1e4cc4a643e9d07cd8fd9ec0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@time_it | |
def set_method(st): | |
s = set() | |
repeat = set() | |
for letter in st: | |
if letter in s: | |
repeat.add(letter) | |
else: | |
s.add(letter) | |
return s-repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment