Question:A Slice of an array said to be a Bounded slice if Max(SliceArray)-Min(SliceArray) stack = new LinkedList(); private Deque minStack = new L...
分类:
其他好文 时间:
2015-07-03 01:42:10
阅读次数:
208
7.2 做题一遍就过的感觉简直太美好啦~然而我并没有测试数据QAQ//program name digit#include#includeusing namespace std;int main(){ int a,count=0; cin>>a; while (a>0){ ...
分类:
其他好文 时间:
2015-07-03 01:41:31
阅读次数:
114
public int [] shuffle(int [] arr) { int [] arr2 =new int[arr.length]; int count = arr.length; int cbRandCount = 0;// 索引 int cbPo...
分类:
编程语言 时间:
2015-07-03 01:38:20
阅读次数:
144
#!/bin/bash
#斐波那契数列
#不要用递归,深度大于30就老火了。
function fun_test()
{
if [ $1 -lt 3 ];then
echo 1
return
fi
sum1=1
sum2=1
let count=$1-2
sum=0
while [ $count -gt 0 ];...
分类:
系统相关 时间:
2015-07-02 22:37:24
阅读次数:
238
题目:Count Complete Tree NodesGiven acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete bin...
分类:
其他好文 时间:
2015-07-02 22:25:05
阅读次数:
170
用过canvas的人都知道,在这个画布上面可以制作各种各样的动画效果,想必大家都用过这个。晒晒刚刚用这个做的一个demo:现在来画一个圆看看:demo.js:var can,ctx,count = 1,w,h,i;can = document.getElementById('can');ctx = ...
分类:
其他好文 时间:
2015-07-02 22:22:40
阅读次数:
228
启动Tomcat发现deploy war的速度明显变慢, 怀疑磁盘出问题测试写入[tomcat@localhost ~]$ dd if=/dev/zero of=kwxgd bs=64k count=4k oflag=dsync4096+0 records in4096+0 records out2...
分类:
其他好文 时间:
2015-07-02 20:45:46
阅读次数:
144
语法str_replace(find,replace,string,count)参数描述find必需。规定要查找的值。replace必需。规定替换find中的值的值。string必需。规定被搜索的字符串。count可选。一个变量,对替换数进行计数。这个我不确定是语法bug还是我写法的问题,当出现匹配...
分类:
其他好文 时间:
2015-07-02 17:25:21
阅读次数:
106
Given a complete binary tree, count the number of nodes.
Definition of a complete binary tree from Wikipedia:
In a complete binary tree every level, except possibly the last, is completely fille...
分类:
其他好文 时间:
2015-07-02 15:47:37
阅读次数:
119
/* internal cascade classifier */
typedef struct CvCascadeHaarClassifier
{
CV_INT_HAAR_CLASSIFIER_FIELDS()
int count;
CvIntHaarClassifier** classifier;
} CvCascadeHaarClassifier;
/* int...
分类:
其他好文 时间:
2015-07-02 15:45:01
阅读次数:
131