Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Example 2: 思路: 类似于二分查找。 ...
分类:
其他好文 时间:
2017-07-02 13:04:36
阅读次数:
126
工厂方法模式 Factory Method :(虚拟构造函数模式 Virtual Constructor,多态性工厂模式 Ploymorphic Facoty) Define an interface for creating an object,but let subclasses decide ...
分类:
编程语言 时间:
2017-06-23 20:51:26
阅读次数:
216
Repeater 控件的嵌套使用 ItemDataBound:数据绑定的时候(正在进行时)发生,多用在Repeater控件嵌套,对子Repeater控件进行数据绑定及模板列中统计列的计算处理等事情 ItemCommand :用来响应Item模板中的控件的事件。 绑定数据时,在父Repeater的It ...
分类:
其他好文 时间:
2017-06-17 12:16:12
阅读次数:
199
In this paper, we propose a solution to the double-spending problem using a peer-to-peer distributed timestamp server to generate computational proof ...
分类:
其他好文 时间:
2017-06-17 10:21:55
阅读次数:
143
1.安装nginx1.13 1.1解决依赖关系编译安装nginx需要事先需要安装开发包组"Development Tools"和 "Development Libraries"。同时,还需要专门安装pcre-devel包: 1.2 添加用户 1.3下载nginx源码包 1.4编译安装 1.5提供sy ...
分类:
其他好文 时间:
2017-06-10 14:07:07
阅读次数:
263
Long Long Message Time Limit: 4000MS Memory Limit: 131072K Total Submissions: 30427 Accepted: 12337 Case Time Limit: 1000MS Description The little cat ...
分类:
编程语言 时间:
2017-06-06 23:36:09
阅读次数:
348
Java 1. Give two String, write a method to decide if one is a permutation of the other. for example: string s1="dog" string s2="god" is true; string s ...
分类:
编程语言 时间:
2017-06-04 00:53:01
阅读次数:
242
In previous posts on vm.swappiness and using RAM disks we talked about how the memory on a Linux guest is used for the OS itself (the kernel, buffers, ...
分类:
系统相关 时间:
2017-05-31 18:52:23
阅读次数:
203
题目描述 Farmer John has decided to reward his cows for their hard work by taking them on a tour of the big city! The cows must decide how best to spend t ...
分类:
其他好文 时间:
2017-05-17 22:15:03
阅读次数:
328