码迷,mamicode.com
首页 >  
搜索关键字:hash map    ( 36038个结果)
(1)集合 ---遍历map集合
Map接口 实现Map接口的类用来存储键(key)-值(value) 对。Map 接口的实现类有HashMap和TreeMap等。Map类中存储的键-值对通过键来标识,所以键值不能重复。HashMap: 线程不安全,效率高. 允许key或value为nullHashTable:线程安全,效率低. ....
分类:其他好文   时间:2014-07-11 18:56:07    阅读次数:335
hdu 1253 胜利大逃亡(简单题)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1253题目大意:在所给的时间能顺利离开城堡。题目代码:#include #include #include #include using namespace std; int map[55][55...
分类:其他好文   时间:2014-07-11 18:19:06    阅读次数:246
redis key和value
exists keydel key1 key2Redis 的vauleredis 提供五种数据类型:string,hash,list,set 及sorted set。string 是最基本的类型,而且string 类型是二进制安全的。意思是redis 的string 可以包含任何数据。比如jpg 图...
分类:其他好文   时间:2014-07-11 12:38:31    阅读次数:239
部分系列题
部分系列题当然是不齐的。JZP系列 JZPKIL 数论,反演,积性函数,伯努利数,(常数优化) JZPFAR k-d树 JZPTAB 分块 hash sam【太可怕了 不会写】 JZPLCM 三维偏序,可持久化线段树维护 JZPEXT 数位统计(常数优化) JZPGYZ suffix array水....
分类:其他好文   时间:2014-07-11 09:50:41    阅读次数:229
用一个MapReduce job实现去重,多目录输出功能
总结之前工作中遇到的一个问题。 背景: 运维用scribe从apache服务器推送过来的日志有重复记录,所以这边的ETL处理要去重,还有个需求是要按业务类型多目录输出,方便挂分区,后面的使用。 这两个需求单独处理都没有问题,但要在一个mapreduce里完成,需要一点技巧。 1、map输入数据,经过一系列处理,输出时: if(ttype.equals("other"))...
分类:其他好文   时间:2014-07-11 00:20:13    阅读次数:226
【足迹C++primer】41、文本查询程序
/** * 功能:使用标准库:文本查询程序 * 时间:2014年7月10日09:10:15 * 作者:cutter_point */ #include #include #include #include #include #include #include #include using namespace std; using line_no=vector::size_type; /**...
分类:编程语言   时间:2014-07-11 00:16:17    阅读次数:305
VO对象通过groovy模板映射XML文件
最近研究了一个开源工具包org.codehaus.groovy,处理VO对象和XML文件的映射方便。简言之:将VO对象中的属性(包括Collection, Map),通过groovy模板文件,映射XML文件。...
分类:其他好文   时间:2014-07-10 22:48:20    阅读次数:391
用session实现简单的购物
1 package cn.itcast.shopping; 2 3 import java.io.IOException; 4 import java.io.PrintWriter; 5 import java.util.Map; 6 7 import javax.servlet.Servle...
分类:其他好文   时间:2014-07-10 17:08:45    阅读次数:243
一边介绍mapreduce原理不错的文章
Map Reduce – the Free Lunch is not over?
分类:其他好文   时间:2014-07-10 15:43:59    阅读次数:147
Trapping Rain Water
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:移动开发   时间:2014-07-10 15:00:57    阅读次数:267
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!