Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def TestUniqueCharacters(characters):
- chars = {}
- for character in characters:
- if character not in chars:
- chars[character] = 1
- else:
- return False
- return True
- for i in range(30000000):
- TestUniqueCharacters("qwertyuiopasdfghjklzxcvbnm1234567890-=[];',.!@#$%^&*()")
- def TestUniqueCharacters(characters):
- chars = set()
- for character in characters:
- if character not in chars:
- chars.add(character)
- else:
- return False
- return True
- for i in range(30000000):
- TestUniqueCharacters("qwertyuiopasdfghjklzxcvbnm1234567890-=[];',.!@#$%^&*()")
Add Comment
Please, Sign In to add comment