This file contains hidden or 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 checkUniqueness(String source) { | |
// Assumes that string includes ASCII characters (0-256) | |
if (source == null || source.length() == 0 || source.length() > 256) { | |
return false; | |
} | |
boolean[] seen = new boolean[256]; | |
for (int i = 0; i < source.length(); i++) { | |
int temp = (int) source.charAt(i); |
NewerOlder