You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl ...
分类:
其他好文 时间:
2016-06-15 15:53:25
阅读次数:
105
前端开发,使用tomcat调试,大致需要进行如下几个步骤。其中,第一步,进入项目所在目录敲sbt命令来打包,第二步,拷贝lib文件夹,第四步重启tomcat,反反复复已经让我不胜其烦,那么做个简单的bat脚本使其自动化吧。 针对本人d盘中的WebApp项目,bat脚本内容如下: 脚本逻辑就这么简单, ...
分类:
其他好文 时间:
2016-06-15 15:55:02
阅读次数:
140
Given an integer, write a function to determine if it is a power of two. Given an integer, write a function to determine if it is a power of two. Give ...
分类:
其他好文 时间:
2016-06-15 15:54:53
阅读次数:
107
前几天我写了这个切换效果,但是是只传一个值的函数,经过各位大牛的指点发现还是有些问题的,于是经过我不懈的努力,完善了代码: 传递多个参数替代函数里面包含事件这个问题: html代码: css代码: jquery代码: 调用: 这里传了两个值,tab和index,来实现事件和函数体的分离,对于传参来说 ...
分类:
其他好文 时间:
2016-06-15 15:52:53
阅读次数:
141
前面的博文中已经交代过,ffmpeg打开视频慢主要是因为av_find_stream_info 耗时久。下面给出重写查找音视频stream info的一段代码,用来替代av_find_stream_info 。 这段代码的宗旨是找到音视频必要的信息后,立即返回。方法参数里传入vector> pack ...
分类:
其他好文 时间:
2016-06-15 15:52:48
阅读次数:
306
MoreLinq里的Batch和Partition不知道什么区别。 var ints =Enumerable.Range(1,10); var result = ints.Batch(3); var result2 = ints.Partition(3); 做出来的结果一样 // [1,2,3],[ ...
分类:
其他好文 时间:
2016-06-15 15:52:27
阅读次数:
150
团队项目:广商百货 团队贡献分: 卓炜杰:27 容杰龙:24 董婷婷:20 袁文洪:14 吴建明:15 ...
分类:
其他好文 时间:
2016-06-15 15:51:00
阅读次数:
96
不久之前,三星的Samsung Pay和苹果的Apple Pay掀起了一股移动支付潮流。作为集智能与便捷于一身的移动支付平台,不论用户身处何处消费,只需一部手机,简单操作几步就能轻松完成支付。这无疑吸引了消费者的眼球,也为手机用户带来了更超值的体验感受。那么移动支付究竟是怎样操作的呢?为得出真实感受 ...
分类:
其他好文 时间:
2016-06-15 15:52:30
阅读次数:
141
...
分类:
其他好文 时间:
2016-06-15 15:52:39
阅读次数:
104
Valid Anagram Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true. ...
分类:
其他好文 时间:
2016-06-15 15:52:23
阅读次数:
147
<script src="js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> $(document).ready(function(){ jQ ...
分类:
其他好文 时间:
2016-06-15 15:53:11
阅读次数:
159
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: ...
分类:
其他好文 时间:
2016-06-15 15:51:38
阅读次数:
107
1.join on 横向拼接 2.union 纵向拼接 局部变量: 使用declare关键字给变量声明,语法非常简单:declare @<变量名> <变量类型> 对变量的赋值可以使用set关键字,使用set关键字时对变量的赋值一次只能赋值一个。 case ...when ... ...
分类:
其他好文 时间:
2016-06-15 15:50:25
阅读次数:
84
#1284 : 机会渺茫 #1284 : 机会渺茫 时间限制:5000ms 单点时限:1000ms 内存限制:256MB 描述 小Hi最近在追求一名学数学的女生小Z。小Z其实是想拒绝他的,但是找不到好的说辞,于是提出了这样的要求:对于给定的两个正整数N和M,小Hi随机选取一个N的约数N',小Z随机选 ...
分类:
其他好文 时间:
2016-06-15 15:52:33
阅读次数:
184
在做绘图相关工作,由于对显示绘制结果实时性有要求,筛选了GDI , 与GDI+ 贴图性能。这里假设在内存中已绘制完成一张图片,现需求显示在控件上,同时,总是更新全部区域。 GDI+ 实现 调用1000次,测帧速 结果:帧率:88.81783帧率:91.14108帧率:92.28497帧率:83.16 ...
分类:
其他好文 时间:
2016-06-15 15:49:09
阅读次数:
311
■ The mount command gives an overview of all mounted devices. To get this information, the /proc/mounts file is read, where the kernel keeps informati ...
分类:
其他好文 时间:
2016-06-15 15:51:17
阅读次数:
130
树的初始化函数(双亲法和孩子结点法两种), 建树函数, 输出树函数, 树的前序遍历函数(递归和非递归两种), 树的后序遍历函数(递归和非递归两种), 树的层次遍历函数, 一般树和二叉树的转换函数。 主菜单和副菜单。 主函数。 具体代码如下: #include <stdio.h> #include < ...
分类:
其他好文 时间:
2016-06-15 15:51:37
阅读次数:
172