题目链接
class Solution {
public:
bool isUnique(string astr) {
map m;
for (auto c : astr) {
if (m.count(c) != 0) return false;
m[c] += 1;
}
return true;
}
};



