C++

来源:互联网 发布:如何优化企业资本结构 编辑:程序博客网 时间:2024/06/05 15:08

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]);        }
原创粉丝点击