菱纱梦

导航

2014年9月15日 #

C++学习笔记 <hash_map> <散列映射>

摘要: 对于大型容器而言hash_map要比map快5至10倍的元素查找速度。map对其元素类型要求有一个 m1; //用 m2; //用Nocase()比较串hash_map hm1; //用Hash()散列,用==比较hash_map hm2; //用hfct()散列,用==比... 阅读全文

posted @ 2014-09-15 18:13 菱纱梦 阅读(323) 评论(0) 推荐(0) 编辑

Longest Consecutive Sequence <leetcode>

摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ... 阅读全文

posted @ 2014-09-15 10:42 菱纱梦 阅读(371) 评论(0) 推荐(0) 编辑