ya,today I’ve seen an interesting question at leetcode.And remind me of the ignored functions..reverse() and swap() for a matrix quiz.
vector<int> vi(n);
r[i].resize(i + 1);
//so we can use it like array vi[]
vector<char> tasks;
unordered_map<char,int>mp;//减少计算
//C++11
for(auto e : tasks)
{
mp[e]++;
count = max(count, mp[e]);
}