Skip to content

Instantly share code, notes, and snippets.

@LargePixels
Created February 5, 2016 16:40
public Boolean checkDupesBinary(String str) {
char[] charArray = str.toCharArray();
Boolean[] charSpot = new Boolean[256];
for (char theChar : charArray ) {
int charInt = (int) theChar;
if (charSpot[charInt]) {
return true;
}
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment