金币系统Time Limit:1000msMemory Limit:65535KB64-bit integer IO format:%lld Java class name:MainYC大牛自从杭州归来,喜欢没事儿摆个地摊儿什么的的赚点零钱买装备。经过一个星期的苦苦支撑,终于裸奔了一把鹰角弓出来。-...
分类:
其他好文 时间:
2014-07-09 00:12:42
阅读次数:
211
Max SumTime Limit:1000msMemory Limit:32768KBThis problem will be judged on HDU. Original ID:100364-bit integer IO format:%I64d Java class name:MainGiv...
分类:
其他好文 时间:
2014-07-08 23:42:52
阅读次数:
273
SubsetsTotal Accepted:13267Total Submissions:48509My SubmissionsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a sub...
分类:
其他好文 时间:
2014-07-06 17:50:21
阅读次数:
170
题目如下:
Problem A: The Monocycle
A monocycle is a cycle that runs on one wheel and the one we will be considering is a bit more special. It has a solid wheel colored with fiv...
分类:
其他好文 时间:
2014-07-06 11:49:47
阅读次数:
233
installed the Redhat Enterprise Linux 7 in 64 bit system, with dual boot enabled (Windows7 and RHEL7), and encountered quite a few problems, solved all...
分类:
其他好文 时间:
2014-07-06 10:55:25
阅读次数:
216
问题
最近在学习Hadoop(2.2.0),打算写一个MapReduce的小程序在Ubuntu 64位的环境下测试一把,一切环境配置完毕后,执行的过程中,控制台输出下面的内容:
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java clas...
分类:
其他好文 时间:
2014-07-06 00:46:04
阅读次数:
434
1. 基本概念 位运算: 用于对整数类型(int,char, long 等)变量中的 某一位(bit),或者若干位进行操作。比如: 1) 判断某一位是否为1 2) 只改变其中某一位,而保持其他位都不变。 C/C++语言提供了六种位运算符来进行位运算操作: & ...
分类:
编程语言 时间:
2014-07-05 20:34:00
阅读次数:
186
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of...
分类:
其他好文 时间:
2014-07-04 07:35:58
阅读次数:
215
Bloom Filter,即布隆过滤器,是一种空间效率很高的随机数据结构。原理:开辟m个bit位数组的空间,并全部置零,使用k个哈希函数将元素映射到数组中,相应位置1.
分类:
数据库 时间:
2014-07-03 20:47:36
阅读次数:
393
在我的程序员生涯中,悟出了以下的一个程序编码流程;期间也接触了很多其它的理论和想法,但是我还是觉得这是最适合我的。大致的样式是这样的:多思考(Think a bit)多编码(Code a bit)多测试(Test a bit)再来一遍(Go to Step 1)第一步:多思考有多少朋友会觉得,噼噼啪...
分类:
其他好文 时间:
2014-07-02 19:37:13
阅读次数:
183