题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?代码:用hashmap版/** * Definition for singly...
分类:
其他好文 时间:
2015-05-01 00:25:22
阅读次数:
157
环境规划:node1:192.168.1.250node2:192.168.1.251vip:192.168.1.201数据库:mysql-5.6.231.各节点的网络配置node1节点:[root@node1~]#hostnamenode1[root@node1~]#ipaddr1:lo:<LOOPBACK,UP,LOWER_UP>mtu16436qdiscnoqueuestateUNKNOWNlink/loopback00:00:00:00:00:00brd0..
分类:
数据库 时间:
2015-04-30 20:29:47
阅读次数:
188
由于Key有Down和Up事件,所以会执行两次。class editTextOnKeyClickListener implements etOnKeyClickListener { @Override public boolean onKeyClick(View v, i...
分类:
移动开发 时间:
2015-04-30 19:58:48
阅读次数:
137
原文来自于:http://www.techug.com/10-algorithm-help-programmer-grow-up算法一:快速排序算法快速排序是由东尼·霍尔所发展的一种排序算法。在平均状况下,排序n个项目要Ο(nlogn)次比较。在最坏状况下则需要Ο(n2)次比较,但这种状况并不常见。...
分类:
编程语言 时间:
2015-04-30 19:42:17
阅读次数:
151
Router#show interface e0/2Ethernet0/2 is up, line protocol is up Hardware is Lance, address is 0019.e78a.6401 Internet address is 1.1.1.9/24 MTU 1...
分类:
系统相关 时间:
2015-04-30 17:46:18
阅读次数:
2102
Compiler1.2 the structure of a compilerCompiler : analysis and synthesissyntactically语法上的semantically语意上的The analysis part breaks up the source progra...
分类:
其他好文 时间:
2015-04-30 15:41:36
阅读次数:
133
Thomas H.Cormen 的《算法导论》上介绍的几个经典排序算法的Python实现。1、冒泡排序: 简单的两重循环遍历,使最小(最大)的值不断地往上升(下沉)而实现的排序,算法时间为O(n2)。 代码如下: 1 def up_sort(a): 2 # 冒泡排序 3 ...
分类:
编程语言 时间:
2015-04-29 23:17:04
阅读次数:
215
Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to...
分类:
其他好文 时间:
2015-04-29 19:04:56
阅读次数:
111