Esempio n. 1
0
bool checkUnique(const char *str, int len, HashMap obj){
    if(len>256){
        return false;
    }
    for(int j=0;j<len;j++){
        if(obj.atKey(obj.getKey(str[j]))>1){
            return false;
        }
    }
    return true;
}