Created
February 5, 2016 16:40
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
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