Created
April 16, 2020 05:06
-
-
Save mm909/84dc76a9243905c0ecca2fd5b03d8fc2 to your computer and use it in GitHub Desktop.
Problem 1.1.2
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
def isUnique(str): | |
if(len(str) > 26): | |
return False | |
hash = {} | |
for char in str: | |
if char in hash: | |
return False | |
else: | |
hash[char] = 1 | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment