Plague Inc. is a famous game, which player develop virus to ruin the world. JSZKC wants to model this game. Let's consider the world has N\times MN×M ...
分类:
其他好文 时间:
2018-07-25 16:18:23
阅读次数:
167
题意: 给n和k,让你用不小于 k 个不同的数字构成一个长度为n的序列,使得序列中不同的区间和的数目最小。 n,k<=500 k-1个数填一些数字的一正一负,这样有些区间和为0。 剩下的都填0。 ...
分类:
其他好文 时间:
2018-07-24 14:52:38
阅读次数:
125
Different Integers Given a sequence of integers a1, a2, ..., an and q pairs of integers (l1, r1), (l2, r2), ..., (lq, rq), find count(l1, r1), count(l ...
分类:
其他好文 时间:
2018-07-19 23:27:09
阅读次数:
265
//hamming distance: the number of different bitsprivate static int hammingDistance(int num1,int num2){ //The first way is using bitCount int res = Int ...
分类:
其他好文 时间:
2018-07-19 16:05:05
阅读次数:
173
Basic Vector Space Search Engine Theory LA2600– January2, 2004 - presented by Vidiot Overview: A Vector Space Search Engine uses very simple technique ...
分类:
其他好文 时间:
2018-07-17 23:16:53
阅读次数:
224
Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of th ...
分类:
其他好文 时间:
2018-07-13 13:28:56
阅读次数:
165
概括和总结了部分设计模式,主要是一些常见的设计模式,这些设计模式在各种SDK中经常见到,如STL、JDK等等,自己在编写一些框架时也经常用到,其中单例和模板模式最常用。 1 单例模式 在整个程序执行过程中,某个类只有一个实例(对象),这个实例可以被多个模块获取使用。 定义:Ensure a clas ...
分类:
其他好文 时间:
2018-07-11 21:23:43
阅读次数:
125
Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. Example 1: Input: 5 O ...
分类:
其他好文 时间:
2018-07-11 19:39:49
阅读次数:
122
*&---------------------------------------------------------------------* *& Report ZDM_ICM_PFO_COMPARISON *&------------------------------------------... ...
分类:
其他好文 时间:
2018-07-11 17:08:50
阅读次数:
190
Often times when developing web applications, you need to open multiple tabs to run different scripts to start the application. This can all be done w ...
分类:
其他好文 时间:
2018-07-10 19:15:58
阅读次数:
260