简单题
class Solution {
public:
bool CheckPermutation(string s1, string s2) {
unordered_map<char, int> map;
if(s2.length() != s1.length()) return false;
for(char c : s1) map[c]++;
for(char c : s2){
map[c]--;
if(map[c] < 0) return false;
}
return true;
}
};