码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
【Linked List Cycle】cpp
题目: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
mysql高可用方案之Keepalived+主主复制
环境规划: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
android edittext 点击回车会响应两次的解决方案
由于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
Cisco show interface 命令详解
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
1.2 the structure of a compiler
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
Python实现排序(冒泡、快排、归并)
Thomas H.Cormen 的《算法导论》上介绍的几个经典排序算法的Python实现。1、冒泡排序: 简单的两重循环遍历,使最小(最大)的值不断地往上升(下沉)而实现的排序,算法时间为O(n2)。 代码如下: 1 def up_sort(a): 2 # 冒泡排序 3 ...
分类:编程语言   时间:2015-04-29 23:17:04    阅读次数:215
Search in Rotated Sorted Array II
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!