Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t...
分类:
其他好文 时间:
2014-11-25 10:46:27
阅读次数:
196
这道题leetcode上面写着是DP问题,问题是我一开始写了个简单的递归结果直接超时,所以没办法只好拿迭代来做了。题目如下: You are climbing a stair case. It takes n steps to reach to the top. Each time you can ...
分类:
其他好文 时间:
2014-11-24 00:45:16
阅读次数:
302
You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. Step # 2: Start the MySQL (mys...
分类:
数据库 时间:
2014-11-23 23:01:13
阅读次数:
390
在上一节中实现了走棋规则,这节中将实现悔棋
首先看一下悔棋的效果:
通过观察上图中的演示可知,当单击悔棋按钮后,移动了的棋子会回到原来的位置上,
实现方式:
首先在SceneGame类中定义一个成员变量CCArray* _steps,用于保存每步棋的棋子信息
//保存每步走的棋子
CCArray* _steps;
在SceneGame类中的成员函数init...
分类:
其他好文 时间:
2014-11-21 21:55:44
阅读次数:
325
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2014-11-21 18:03:09
阅读次数:
173
How to manually remove an infected file from your computer
In order to manually remove an infected item from your computer you need to perform the following steps:
1. Restart the computer in Safe...
分类:
其他好文 时间:
2014-11-19 11:15:22
阅读次数:
162
How to manually remove an infected file from your computer
In order to manually remove an infected item from your computer you need to perform the following steps:
1. Restart the computer in Safe...
分类:
其他好文 时间:
2014-11-19 01:12:38
阅读次数:
246
In XCode 5.1, the default arch to build APP is arm64 included, so if you want to have 32-bit build only, steps: Select on build project and open ARCH Remove ‘Standard Architect‘ Add ‘amrv7‘ Add ‘am...
分类:
其他好文 时间:
2014-11-17 16:01:33
阅读次数:
207
In order to build the code on ns-3 refer to the following steps:Download ns-3 from http://www.nsnam.org/Install ns-3 by following the instructions in ...
分类:
其他好文 时间:
2014-11-16 09:21:08
阅读次数:
934
http://www.aqee.net/10-steps-to-becoming-a-better-programmer/这篇文章要介绍的,是我作为专业程序员这些年来学到的能真正提高我的代码质量和整体工作效率的10件事情。1. 永远不要复制代码不惜任何代价避免重复的代码。如果一个常用的代码片段出现在...
分类:
其他好文 时间:
2014-11-15 16:53:49
阅读次数:
265