![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 83
PiscesDAI
这个作者很懒,什么都没留下…
展开
-
C++map用法详解
转自:https://www.cnblogs.com/fnlingnzb-learner/p/5833051.html Map是STL的一个关联容器,它提供一对一(其中第一个可以称为关键字,每个关键字只能在map中出现一次,第二个可能称为该关键字的值)的数据 处理能力,由于这个特性,它完成有可能在我们处理一对一数据的时候,在编程上提供快速通道。这里说下map内部数据的组织,map内部自建一颗红黑...转载 2018-11-27 16:38:55 · 768 阅读 · 0 评论 -
3. Longest Substring Without Repeating Characters(map用法)
Given a string, find the length of the longest substring without repeating characters. class Solution { public: int lengthOfLongestSubstring(string s) { map<char,int> record; ...原创 2018-11-27 17:56:05 · 152 阅读 · 0 评论