- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 C++数字转换成字符串(to_string)
std::to_string C++ Strings library std::basic_string Defined in header <string>(1) std::string to_string( int value );(2) std::string to_string( long value );(3) std::string to_string( long long
2016-08-12 00:22:08 18929
原创 map与unordered_map
一、简介 随着C++ 0x标准的确立,C++的标准库中也终于有了hashtable。很久以来,STL中都只提供 <map>作为存放对应关系的容器,内部通常用红黑树实现,原因是二叉平衡树(如红黑树)的各种操作,插入、删除、查找等,都是稳定的时间复杂度,即O(logn);但是对于hash表来说,由于无法避免re-hash所带来的性能问题,即使大多数情况下hash表的性能非常好,但是re-hash所带
2016-08-08 09:02:15 1010
原创 First Missing Positive
题目名称First Missing Positive描述Given an unsorted integer array, find the first missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.Your algorithm should run in O(n) tim
2016-08-08 08:58:20 597
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人