qingcheng奕  

2014年7月30日

摘要: #include map dict;map是基于红黑树实现的,可以快速查找一个元素是否存在,是关系型容器,能够表达两个数据之间的映射关系。dict.insert(make_pair("abc",1));dict.count("mn"); 看看dict中含有 mn的个数,因为元素是唯一的,所以这个返回... 阅读全文
posted @ 2014-07-30 22:16 qingcheng奕 阅读(1646) 评论(0) 推荐(0) 编辑
 
摘要: https://oj.leetcode.com/problems/substring-with-concatenation-of-all-words/找S中子串,每个元素都在T中出现了,且所有T中元素都在S子串中出现了class Solution {public: vector findSub... 阅读全文
posted @ 2014-07-30 21:48 qingcheng奕 阅读(152) 评论(0) 推荐(0) 编辑