程序员面试金典面试题 01.01. 判定字符是否唯一
#include <iostream>#include<string>using namespace std;class Solution {public: bool isUnique(string astr) { bool charRecord[100] = { false };//全用false进行初始化 for (int i = 0; i<int(astr.length()); i++){ if (charRec