摘要:
转自http://blog.csdn.net/mmzsyx/article/details/8240071散列容器(hash container):通常比二叉树的存储方式可以提供更高的访问效率.#include #include using namespace boost;散列集合简介:unordered库提供两个散列集合类unordered_set和unordered_multiset,STLport也提供hash_set和hash_multiset,它们的接口,用法与stl里的标准关联容器set/multiset相同,只是内部使用散列表代替了二叉树实现,因此查找复杂度由数降为常数。unor
阅读全文
posted @ 2013-11-01 20:23
qingcheng奕
阅读(772)
推荐(0)
摘要:
http://oj.leetcode.com/problems/text-justification/编译代码要看warnings!它提供了可能出问题的情况,比如类型转换上unsigned int 2 #include 3 #include 4 using namespace std; 5 6 class Solution { 7 public: 8 vector fullJustify(vector & words, int L) { 9 // IMPORTANT: Please reset any member data you decla...
阅读全文
posted @ 2013-11-01 10:30
qingcheng奕
阅读(215)
推荐(0)