Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-12 08:22:39
阅读次数:
181
[导读]bind(), live(), 和 delegate()这三个方法的区别并不是非常明显。弄清楚这些区别对我们写出简介的代码和预防我们的应用中出现bugs是非常有帮助的。 jQuery团队在1 7版本中发布了一个用于绑定事件的新方法叫bind(), .live(), 和 .delegate()...
分类:
其他好文 时间:
2014-07-09 15:22:59
阅读次数:
174
hdu1829 A Bug's Life (并查集)...
分类:
其他好文 时间:
2014-07-08 19:38:19
阅读次数:
139
Description
During winter, the most hungry and severe time, Holedox sleeps in its lair. When spring comes, Holedox wakes up, moves to the exit of its lair, comes out, and begins its new life.
Hol...
分类:
其他好文 时间:
2014-07-08 17:28:54
阅读次数:
256
完整的错误提示信息为:No orientation specified, and the default is horizontal. This is a common source of bugs whenchildren are added dynamically.通常发生这个错误提示的原因是我...
分类:
其他好文 时间:
2014-07-03 22:02:53
阅读次数:
389
题目大意:
求出在m个串中出现过大于m/2次的子串。
思路分析:
如果你只是直接跑一次后缀数组,然后二分答案扫描的话。
那么就试一下下面这个数据。
2
abcdabcdefgh
efgh
这个数据应该输出
efgh
问题就在于对于每一个串,都只能参与一次计数,所以在check的时候加一个标记数组是正解。
#include
#include
#inc...
分类:
其他好文 时间:
2014-07-03 15:35:12
阅读次数:
171
原文出处:http://strong-life-126-com.iteye.com/blog/806246翻看以前的笔记,看到一个特殊的java文件:pacakge-info.java,虽然有记录,但是不全,就尝试着追踪一下该问题, 分享一下流水账式的结果。 首先,它不能随便被创建。在Eclips....
分类:
编程语言 时间:
2014-07-03 06:54:14
阅读次数:
254
/*
* 备忘录模式
*/
#include
//保存值
class mySavevalue
{
public:
mySavevalue(string user_name = "",
int life_value = 100,
int magic_point = 100,
int rank_values =...
分类:
其他好文 时间:
2014-07-01 08:49:27
阅读次数:
203
In life we are happiest when 每个人从我们诞生的那一刻起,直到最后的终老死去,生命中的每一天都会有不同的经历——成功、失败、喜怒哀乐。而人们最渴望得到的不是物质,而是幸福。幸福就像上帝派来的信使,你永远不知道他什么时候会来,而又什么时候会离开。而它带给我们的却是串联成生命...
分类:
其他好文 时间:
2014-07-01 00:49:03
阅读次数:
341
文章地址:http://ryantang.me/blog/2014/06/29/efficient-life/...
分类:
其他好文 时间:
2014-06-30 19:01:40
阅读次数:
157