记录点滴。 1 /* 2 2015.6 HT 3 ACM Work_4 4 5 */ 6 #include 7 #include 8 using namespace std; 9 10 /* 11 超级楼梯 12 一楼梯共M级,刚开始在第一级,每次只能跨上一级或二级 1...
分类:
其他好文 时间:
2015-06-08 23:10:53
阅读次数:
336
Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ...
分类:
其他好文 时间:
2015-06-08 23:10:32
阅读次数:
313
1 class Solution { 2 public: 3 vector getRow(int rowIndex) { 4 vector> tri; 5 if(rowIndex==0) 6 { 7 vector c;...
分类:
其他好文 时间:
2015-06-08 23:09:21
阅读次数:
133
参考这里,感觉很Cool吧。Linux-0.11函数调用关系图:QEMU函数调用关系图:
分类:
其他好文 时间:
2015-06-08 23:09:57
阅读次数:
231
Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, except...
分类:
其他好文 时间:
2015-06-08 23:08:03
阅读次数:
215
Help - Tacit DynamicsHelpThis page describes the various features of FolderSync and how to use them. If you have problems, tryconsultingthe FAQ or try...
分类:
其他好文 时间:
2015-06-08 23:09:31
阅读次数:
260
题意:N个点的有向树, Q次询问, 每次询问区间[L, R]内所有点的LCA。大致做法:线段树每个点保存它的孩子的LCA值, 对于每一次询问只需要 在线段树查询即可。 1 #include 2 using namespace std; 3 const int MAXN = 3e5+10; ...
分类:
其他好文 时间:
2015-06-08 23:09:00
阅读次数:
257
mingw32 (x32)gcc 4.8.1 g++ 4.8.1 qt 4.8.6 opencv-3.0.0 2015-06-04 cmake 3.3.0-rc1 windows 7 x64 参考文章: http://blog.csdn.net/qiurisuixiang/article/deta....
分类:
其他好文 时间:
2015-06-08 23:06:21
阅读次数:
463
一、创建型模式(5):原型、建造者、单例、工厂、抽象工厂。 1.原型模式:建立相应数目的原型并克隆它们通常比每次用合适的状态手工实例化该类更方便。 2.建造者模式:将一个复杂对象的构建与它的表示分离,用同样的构建过程创建不同的产品。 3.单例模式:让类自身负责保存它的唯一实例。这个类可以保证没...
分类:
其他好文 时间:
2015-06-08 23:08:10
阅读次数:
200
//定义结构体 Pointstruct Point { int x; int y;};void main(){ Point pt; pt.x=5; pt.y=7; cout<<pt.x<<endl<<pt.y<<endl;}//------------------...
分类:
其他好文 时间:
2015-06-08 23:07:45
阅读次数:
122
pog loves szh IITime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5265Descriptionpog在与szh玩游戏,首先pog找到了一个包含n个数的序列,然后他在...
分类:
其他好文 时间:
2015-06-08 23:06:56
阅读次数:
158
1 //声明一个整数 2 NSInteger a=9; 3 //创建常见的数据类型的对象 4 NSNumber *intNumber=[[NSNumber alloc] initWithInt:5]; 5 NSNumber *floatNumber=[[NSNumb...
分类:
其他好文 时间:
2015-06-08 23:06:24
阅读次数:
155
源代码尽在我的github上面:https://github.com/521xueweihan欢迎大家交流学习"""setUp() 方法中会创建一个新的测试客户端并初始化一个新的数据库。在每个独立的测试函数运行前都会调用这个方法。 tearDown() 方法的功能是在测试结束后关闭文件,并在文件系统...
分类:
其他好文 时间:
2015-06-08 23:04:52
阅读次数:
181
正则表达式在编程中总会有用到的时候,在个人认知中,如下编程语言会用到,当然还不止:(1)Web前端:JavaScript(2)Web后端:ASP.NET、JSP、PHP(3)移动端:Android、iOS这里列举了正则表达式的一些基本描述和用法,方便个人随时查找。PS:内容来自网络,非个人原创;我也...
分类:
其他好文 时间:
2015-06-08 23:05:09
阅读次数:
159
1、为什么在UIViewController内设置了self.navigationItem.backBarButtonItem 对于导航栏显示的backBarButtonItem不起任何作用?首先我们得了解一下backBarButtonItem(其中当text属性太长时就会显示失败)leftBarB...
分类:
其他好文 时间:
2015-06-08 23:06:49
阅读次数:
178
TCP/IP参考模型 ISO制定的OSI参考模型的过于庞大、复杂招致了许多批评。与此对照,由技术人员自己开发的TCP/IP协议栈获得了更为广泛的应用. TCP/IP参考模型的层次结构 TCP/IP协议栈是美国国防部高级研究计划局计算机网(Advanced Research Projects Age....
分类:
其他好文 时间:
2015-06-08 23:06:38
阅读次数:
245