题目地址: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3791题目描述: 给定两个长度为n的01串s1,s2,要求用k步,每一步反转s1的m个位置的数码(即0变为1,1变为0),问能有多少种做法,在k步之后将s1变成s....
分类:
其他好文 时间:
2014-07-22 22:53:54
阅读次数:
193
一 Words 1 stuck in 卡在 e.g. Many over 30s feel stuck in a financial rut. 很多超过30岁的人都觉得自己的经济状况很难有所改变。 2 elevator 按键的电梯 escalator传送带的电梯 3 walkable 适于步行的 4...
分类:
其他好文 时间:
2014-07-22 22:50:55
阅读次数:
224
Lots of organizations are deploying SIEM systems either to do their due diligence or because it’s part of a regulatory requirement. One of the misconc...
分类:
其他好文 时间:
2014-07-22 22:49:14
阅读次数:
228
很多时候我们需要用ajax提交post数据,angularjs与jq类似,也有封装好的post。 但是jQuery的post明显比angularjs的要简单一些,人性化一些。 AngularJS: $http.post(‘do-submit.php‘,myData)
.success(function...
分类:
Web程序 时间:
2014-07-22 08:31:34
阅读次数:
213
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2014-07-21 08:36:32
阅读次数:
208
初始化流程代码量比较少,也比较简单。主要是run函数。(我阅读的代码的linux内核版本是2.6.32.61)四、初始化流程分析 run函数顾名思义,很简单这就是在RAID1开始运行时调用,进行一些初始化的操作。主要是对RAID1中的conf进行初始化。run函数在md.c的do_md_run...
分类:
其他好文 时间:
2014-07-21 08:29:16
阅读次数:
347
do while 循环和while循环的区别
1、do while循环是先执行循环体,然后判断循环条件,如果为真,则执行下一步循环,否则终止循环;
while循环是先判断循环条件,如果条件为真则执行循环体;
2、do while循环条件后面必须有一个分号,这个分号表明循环结束。...
分类:
其他好文 时间:
2014-07-20 10:32:28
阅读次数:
189
start_kernel
rest_init();
kernel_thread(kernel_init, NULL, CLONE_FS | CLONE_SIGHAND);
do_basic_setup();
driver_init();
void __init driver_init(void)
void __init driver_init(vo...
分类:
其他好文 时间:
2014-07-20 00:10:38
阅读次数:
318
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?...
分类:
编程语言 时间:
2014-07-19 23:46:49
阅读次数:
516
Determine whether an integer is a palindrome. Do this without extra space.
判断一个int值是否为回文数。
本题有几点需要注意:
(1)不能用额外存储空间,也就是说只能用常数空间解决;诸如将int转换为string再去比较字符是不可行的;
(2)判断回文数的方法有两个:从中间开始向两头判断、从两头向中间判断;后者更简...
分类:
其他好文 时间:
2014-07-19 23:22:39
阅读次数:
345