Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-07-16 23:16:32
阅读次数:
156
preface(见面礼):仅扫tcp端口:netstat -tnlp|egrep -i "$1"udp+tcpnetstat -tunlp|egrep -i "$1"(服务器端口扫描,数据保存到shell array) 1 #!/bin/bash 2 portarray=(`netstat -tn....
分类:
其他好文 时间:
2014-06-29 18:19:45
阅读次数:
253
题目:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:
其他好文 时间:
2014-06-28 08:17:11
阅读次数:
305
接着上次的学习,今天学习scala的下面内容咯~~1·使用集(set)和映射(map)学习过java的童鞋们,看见这两个肯定很开心咯,因为很眼熟哦。scala的集合,分为可变类型和不可变类型。array--可变;list保持不变那么set和map呢,他们通过类继承的差别控制可变和不可变~~先看个set..
分类:
其他好文 时间:
2014-06-28 00:41:02
阅读次数:
152
array( 'host'=>'127.0.0.1', 'port'=>11211 ), 1=>array( 'host'=>'127.0.0.2', 'port'=>11211 ...
分类:
其他好文 时间:
2014-06-27 23:00:31
阅读次数:
296
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2014-06-27 22:25:10
阅读次数:
443
Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm sho...
分类:
其他好文 时间:
2014-06-27 22:24:34
阅读次数:
346
Given an array of strings, return all groups of strings that are anagrams.
分类:
其他好文 时间:
2014-06-27 11:34:57
阅读次数:
641
题目
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and u...
分类:
其他好文 时间:
2014-06-27 08:30:30
阅读次数:
202
今天收到客户监控系统发来的服务器报警,客户一台HPDL38G5监控端收到如下一条报警信息DriveArrayAcceleratorStatusChange.Thearrayacceleratorboard
attachedtothearraycontrollerinSlot1hasanewstatusof4.(Acceleratorstatusvalues:1=other,2=notConfigured,3=enabled,4=tmpDi..
分类:
其他好文 时间:
2014-06-27 06:39:08
阅读次数:
382