In Berland a bus travels along the main street of the capital. The street begins from the main square and looks like a very long segment. There are n bus
stops located along the street, the i-th of ...
分类:
其他好文 时间:
2015-04-18 20:38:14
阅读次数:
196
这个解法告诉我们读题要精确,且例证了多维数组的重要性。# Sudoku [http://en.wikipedia.org/wiki/Sudoku]# A valid sudoku square satisfies these# two properties:# 1. Each column of.....
分类:
其他好文 时间:
2015-04-18 13:03:41
阅读次数:
124
Implementint sqrt(int x).Compute and return the square root ofx.1 class Solution {2 public:3 int mySqrt(int x) {4 return floor(sqrt(x*1.00...
分类:
其他好文 时间:
2015-04-18 11:28:43
阅读次数:
104
I Think I Need a Houseboat
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 91222
Accepted: 39632
Description
Fred Mapper is considering purchasing some lan...
分类:
其他好文 时间:
2015-04-17 09:43:58
阅读次数:
139
指定的网络密码不正确修改一下组策略就可以了运行 组策略编辑器 gpedit.msc-----打开计算机配置------windows设置-------安全设置------本地策略---------安全选项中的:网络安全:LAN管理器身份验证级别,默认是“没有定义”,更改为“发送LM和NTLM相应”
分类:
其他好文 时间:
2015-04-17 09:38:22
阅读次数:
350
设置:1.先将电脑连接从路由器的LAN端口,把从路由的IP地址改成别的网段地址,只要不与主路由器同一网段就行。例如多数的路由器地址都是192.168.1.1,我们只要将从个路由器地址改为192.168.0.1即可;2.再在设置里将从路由器的DHCP功能关闭;3.最后将主路由器出来的网线接在从路由器的...
分类:
其他好文 时间:
2015-04-13 22:43:36
阅读次数:
113
http://blog.163.com/lan_ne/blog/static/1926701702012112272840545/ALT+X hexl-mode 进入16进制模式在这一模式,直接输入时还是输入按键的值,如输入3在光标位置出现3的ascii码33想要输入16进制数,需用ALT+X he...
分类:
系统相关 时间:
2015-04-13 12:28:03
阅读次数:
230
Implement int sqrt(int x).Compute and return the square root of x.这道题也属于二分查找的变形主流的方法是用牛顿插值,牛顿法的思想参考http://blog.csdn.net/StarCXDJ/article/details/18051...
分类:
其他好文 时间:
2015-04-11 22:24:30
阅读次数:
116
WayOs智能路由、EasyRadius云计费、POE远程供电、WIFI城中村方案、EPON实现FTTB+LAN城中村方案、等方案及设备提供商 有需要的可以联系QQ561454825,电话:13779953060,我们提供最专业的无线WIFI认证系统及根据您的需要修改软件
分类:
其他好文 时间:
2015-04-09 06:21:05
阅读次数:
153
Implement int sqrt(int x).
Compute and return the square root of x.
此代码在leetcode上实际执行时间为16ms。
基本思路为二分法。
由于二段式二分法,退出循环时,有两种情况,一是精确匹配,二是精确值不存在情况下,指向稍大一点的。故函数返回时需要判断一下。
另外一点需要注意的是,作判断时,不能用 mid *...
分类:
其他好文 时间:
2015-04-08 15:03:08
阅读次数:
106