码迷,mamicode.com
首页 >  
搜索关键字:connection has timed    ( 17005个结果
LeetCode: Linked List Cycle [141]
【题目】Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?【题意】 推断一个单向链表是否有环【思路】 维护两个指针p1和p2,p1.....
分类:其他好文   时间:2014-09-28 21:16:55    阅读次数:195
ansible runner把结果写入MongoDB
http://rfyiamcool.blog.51cto.com/1030776/1440624http://rfyiamcool.blog.51cto.com/1030776/1422263root@ubuntu12:~/ansible#vimongo.pyimportsysimportpymongoimportansible.runnerdeflog(res):conn=pymongo.Connection(host="localhost",port=27017)db=conn["ansible"]ift..
分类:数据库   时间:2014-09-28 18:51:37    阅读次数:235
Codeforces 468B Two Sets 并查集
题目大意:给出n个数,要求将n个数分配到两个集合中,集合0中的元素x,要求A-x也再0中,同理1集合。 写了几个版本,一直WA在第8组数据...最后参考下ans,写了并查集过了 学到:1、注意离散的逻辑思维,官方答案的 从条件推逆否命题 2、并查集做法:fa[find(i)]=mp[a-p[i]] ? find(a-p[i]) : find(n+2); 3、离散化然后has...
分类:其他好文   时间:2014-09-28 18:42:35    阅读次数:240
Java对MySQL数据库进行连接、查询和修改(转)
Java对MySQL数据库进行连接、查询和修改0. 一般过程: (1) 调用Class.forName()方法加载驱动程序。 (2) 调用DriverManager对象的getConnection()方法,获得一个Connection对象。 (3) 创建一个Statement对象,准备一个SQ...
分类:数据库   时间:2014-09-28 17:19:43    阅读次数:321
[leetcode] Maximum Product Subarray @ python
[leetcode] Latest added:2014-09-23Find the contiguous subarray within an array (containing at least one number) which has the largest product.For exam...
分类:编程语言   时间:2014-09-28 01:51:00    阅读次数:499
TCP listen() Backlog
The backlog has an effect on the maximum rate at which a server can accept new TCP connections on a socket. The rate is a function of both the backlog value and the time that connections stay on th...
分类:其他好文   时间:2014-09-28 00:32:21    阅读次数:301
configure PUTTY to not time out
To modify an existing session with "keep alives" to maintain your connection follow the steps below:Open the PuTTy application and navigate to theOpti...
分类:其他好文   时间:2014-09-27 07:13:49    阅读次数:202
单例头文件
1 // 帮助实现单例设计模式 2 3 // .h文件的实现 4 #define SingletonH(methodName) + (instancetype)shared##methodName; 5 6 // .m文件的实现 7 #if __has_feature(objc_arc) //...
分类:其他好文   时间:2014-09-27 01:55:29    阅读次数:196
URAL - 1297 Palindrome(后缀数组求最长回文子串)
Description The “U.S. Robots” HQ has just received a rather alarming anonymous letter. It states that the agent from the competing «Robots Unlimited» has infiltrated into “U.S. Robotics”. «U.S. R...
分类:其他好文   时间:2014-09-26 22:34:29    阅读次数:370
POJ - 3261 Milk Patterns (后缀数组求可重叠的 k 次最长重复子串)
Description Farmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he discovered that although he can't predict the quality of milk f...
分类:其他好文   时间:2014-09-26 19:26:18    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!