Skip to content

Instantly share code, notes, and snippets.

@mm909
Created April 16, 2020 05:06
Show Gist options
  • Save mm909/84dc76a9243905c0ecca2fd5b03d8fc2 to your computer and use it in GitHub Desktop.
Save mm909/84dc76a9243905c0ecca2fd5b03d8fc2 to your computer and use it in GitHub Desktop.
Problem 1.1.2
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