Skip to content

Instantly share code, notes, and snippets.

//ASCII CODE
public boolean isUniqueChars(String s) {
if (s.length() > 256) {
return false;
}
boolean[] charSet = new boolean[256];
for (int i=0; i<s.length(); i++) {
int val = (int)s.charAt(i);
if (charSet[val]) {