Apparently BFS is the most obvious one.. but it is not that simple - only constant extra space is provided.Then the only strategy to take is recursion...
分类:
其他好文 时间:
2014-07-22 00:39:35
阅读次数:
258
代码清理:USE[master] GO ALTER DATABASE 表名 SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE 表名 SET RECOVERY SIMPLE --简单模式 GO USE 表名 GO DBCC SHRINKFILE (N...
分类:
数据库 时间:
2014-07-22 00:33:37
阅读次数:
232
Chanel brand is taking the high road, stylish simplicity, simple and comfortable, pure style. "Fashion passes, style remains" still the guiding force ...
分类:
其他好文 时间:
2014-07-22 00:27:37
阅读次数:
268
1 创建型模式
单独对对象的创建进行研究,高效的创建对象就是创建型模式讨论的问题。创建型设计模式有6种:
简单工厂模式(simple factory);
工厂方法模式(factory method);
抽象工厂模式(abstract factory);
创建者模式(Builder);
原型模式(Prototype);
...
分类:
其他好文 时间:
2014-07-22 00:06:33
阅读次数:
232
见过很多人写c代码、用结构体将各种要素封装、如下转载一个使用epoll的例子:
//
// a simple echo server using epoll in linux
//
// 2009-11-05
// 2013-03-22:修改了几个问题,1是/n格式问题,2是去掉了原代码不小心加上的ET模式;...
分类:
编程语言 时间:
2014-07-21 13:48:46
阅读次数:
312
WindowsXP: 将C:\Documents and Settings\Administrator\Application Data\Subversion\auth\svn.simple文件夹下的所有文件删除就行了 Application Data是隐藏文件 要先显示隐藏文件 Windows7: 将C:\Users\admi...
分类:
系统相关 时间:
2014-07-20 23:32:44
阅读次数:
455
#include
#include
#include
using namespace std;
struct CNode
{
int L,R;
CNode* pLeft,* pRight;
long long Inc;
long long nSum;
};
CNode Tree[200010];
int nCount=0;
int Mid(CNode* pRoot)...
分类:
其他好文 时间:
2014-07-20 22:38:44
阅读次数:
245
在深入钻研libGDX提供的api之前,让我们创建一个简单的小游戏来初步接触一个每个模块。这里将会主要介绍一些设计思想,而非细节。
我们将会看到如下内容:
1.主要的文件操作
2.清屏
3.绘制图片
4.使用相机
5.主要的输入处理
6.播放声音效果
工程的创建就不在赘述了。
The Game (游戏)
游戏的idea很简单:
1.用桶抓住雨滴
2.桶在屏幕的下方
3.雨...
分类:
其他好文 时间:
2014-07-20 21:30:19
阅读次数:
321
what's xxxIn machine learning, naive Bayes classifiers are a family of simple probabilistic classifiers based on applying Bayes' theorem with strong (...
分类:
其他好文 时间:
2014-07-20 10:11:07
阅读次数:
260
以select_type为线索:1) SIMPLE:简单的SELECT,不实用UNION或者子查询mysql> explain select * from t2;+----+-------------+-------+------+---------------+------+---------+-...
分类:
数据库 时间:
2014-07-19 14:29:10
阅读次数:
285