Skip to content

Instantly share code, notes, and snippets.

@mm909
Created April 16, 2020 05:00
Show Gist options
  • Save mm909/b89b94a5f7700dce49a0bdf2e63cfd2e to your computer and use it in GitHub Desktop.
Save mm909/b89b94a5f7700dce49a0bdf2e63cfd2e to your computer and use it in GitHub Desktop.
Problem 1.1 Solution 1
def isUnique(str):
for i, char1 in enumerate(str):
for j, char2 in enumerate(str):
if char1 == char2 and i != j:
return False
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment