判断字符串中是否所有字符唯一

Question

Implement an algorithm to determine if a string has all unique characters What if you can not use additional data structures ?

1.Assume the char set is ASCII(if not we need to increase the storage size):

public static boolean isUnique(String str){

boolean[] char_set=new boolean[256]......