欢迎转载,转载注明出处:http://www.cnblogs.com/NeighborhoodGuo/p/4716074.html1.以下是problem set 2的详细推导过程:2.附上我自己敲的代码的解决过程,有错误请不吝指正。https://github.com/NeighborhoodWa...
分类:
其他好文 时间:
2015-08-09 20:32:41
阅读次数:
184
1.set定义:每个元素最多只出现一次,并且默认的是从小到大排序。set遍历:题目http://www.cnblogs.com/ZP-Better/p/4700218.htmlfor(set::iterator it = dict.begin(); it != dict.end(); ++it) c...
分类:
其他好文 时间:
2015-08-09 20:31:58
阅读次数:
129
最近从网上搜了一些robotFrame的文档来看,基本都是框架的安装,测试用例的设计。基本没有看到实际具体的数据。特别疑惑的一点是,在执行测试用例的时候,数据到底从哪来的?因为从来没有接触过robotFrame框架,看的有一点云里雾里,不太明白关键字,库,变量和测试用例它们之间到底有什么联系。于是访...
分类:
其他好文 时间:
2015-08-09 20:30:19
阅读次数:
183
The world famous scientist Innokentiy almost finished the creation of perpetuum mobile. Its main part is the energy generator which allows the other m...
分类:
其他好文 时间:
2015-08-09 20:28:58
阅读次数:
103
一、loadView1.什么时候被调用?每次访问UIViewController的view(比如controller.view、self.view)而且view为nil,loadView方法就会被调用。2.有什么作用?loadView方法是用来负责创建UIViewController的view3.默...
分类:
其他好文 时间:
2015-08-09 20:29:09
阅读次数:
357
对于第一问, 简单的dp. f(i, j)表示以(i, j)为左上角的最大正方形, f(i, j) = min( f(i + 1, j), f(i, j + 1), f(i + 1, j + 1)) + 1 (假如(i, j)和右边和下边不冲突)第二问就是经典的悬线法解决最大子矩阵了, 维护悬线H[...
分类:
其他好文 时间:
2015-08-09 20:31:05
阅读次数:
162
题目描述请编写一个方法,将字符串中的空格全部替换为“%20”。假定该字符串有足够的空间存放新增的字符,并且知道字符串的真实长度(小于等于1000),同时保证字符串由大小写的英文字母组成。给定一个string iniString 为原始的串,以及串的长度 int len, 返回替换后的string。测...
分类:
其他好文 时间:
2015-08-09 20:30:55
阅读次数:
108
一、基本概念程序的世界和人类的“对象”世界在思想上是没有设么区别的,富二代继承了父母,自然就拥有了父母拥有的所有资源,子类继承了父类同样就拥有了父类所有的方法和属性(成员变量)。在这里动物是猫类和狗类的父类,黑猫和白猫类是猫类的子类。继承的好处:(1)抽取出了重复的代码(2)建立了类和类之间的联系继...
分类:
其他好文 时间:
2015-08-09 20:28:26
阅读次数:
126
DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating ...
分类:
其他好文 时间:
2015-08-09 20:28:33
阅读次数:
120
这是C语言中指针的基本用法之一,我们先来看一个小例子。下面是代码: int main(void) { char *p = "Hello"; while(*p++) printf("%c", *p); return 0; } 这段代码中第一句表达式: char *p = "Hello"; 声明了指向c...
分类:
其他好文 时间:
2015-08-09 20:28:40
阅读次数:
123
一、关于开源硬件开源硬件的概念简单理解就是电子硬件的设计详细参数是公开的,比如电路图、材料清单和PCB布局等等。主要类型:Arduino、CubieBoard、RaspberryPi、PcDuino、BeagleBone、KiWIBoard和Mixteil开源中国社区-开源硬件专区http://ww...
分类:
其他好文 时间:
2015-08-09 20:30:01
阅读次数:
243
1、下载 Struts2 框架:http://struts.apache.org/download.cgi 。目前最新版是Struts 2.3.24。解压后找到 lib 文件夹,找到以下相关类库,待会复制到 Web 应用的 WEB-INF/lib 文件夹中。struts2-core-2.3.24.j...
分类:
其他好文 时间:
2015-08-09 20:28:19
阅读次数:
128
一、点语法(一)认识点语法声明一个Person类: 1 #import 2 3 @interface Person : NSObject 4 { 5 int _age;//默认为@protected 6 } 7 8 - (void)setAge:(int)age; 9 - (int)a...
分类:
其他好文 时间:
2015-08-09 20:26:58
阅读次数:
116
frequentism-and-bayesianism-chs-iv频率主义与贝叶斯主义 IV:Python的贝叶斯工具这个notebook出自Pythonic Perambulations的博文。The content is BSD licensed.这个系列共4个部分:中文版Part IPart...
分类:
其他好文 时间:
2015-08-09 20:25:39
阅读次数:
205
D -DTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionHere is a famous story in Chinese history."That was about 2300 years ...
分类:
其他好文 时间:
2015-08-09 20:27:54
阅读次数:
138
预定义shader预处理宏: Target platform: SHADER_API_OPENGL - desktop OpenGL SHADER_API_D3D9 - Direct3D 9 SHADER_API_XBOX360 - Xbox 360 SHADER_API_PS3 - Pl...
分类:
其他好文 时间:
2015-08-09 20:27:43
阅读次数:
482
Curse of DimensionalityCurse of Dimensionality refers to non-intuitive properties of data observed when working in high-dimensional space *, specifica...
分类:
其他好文 时间:
2015-08-09 20:28:01
阅读次数:
173