Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public boolean isUnique(string str) {
for(int i=0; i<str.size(); i++){
for(int j=0; j<str.size(); j++) {
if(i==j) continue;
else if(str.charAt(j) == str.charAt(i)) return false;
}
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment