/// /// /// /// 打印人员备案表 /// /// /// /// public bool
PrintCGRYBA(string UPT_ID, out stri...
分类:
其他好文 时间:
2014-05-29 00:34:26
阅读次数:
468
题目链接从代码的健壮性考虑,
应该顾及到把数字翻转后发生溢出的情况,但是此题中并没有这种测试数据。附上代码: 1 class Solution { 2 public: 3 int
reverse(int x) { 4 int tmp = abs(x); 5 i...
分类:
其他好文 时间:
2014-05-29 00:26:22
阅读次数:
243
议题:布隆过滤器(Bloom
Filter)分析:BF由一个很长的二进制向量和一系列随机映射的函数组成,通过多个Hash函数将一个元素映射到一个Bit
Array中的多个点,查询的时候仅当所有的映射点都为1才能判断元素存在于集合内;BF用于检索一个元素是否在一个集合中,记忆集合求交集;优点是空间 和...
分类:
其他好文 时间:
2014-05-29 00:18:07
阅读次数:
324
题目: Say you have an array for which the ith element
is the price of a given stock on day i. Design an algorithm to find the maximum
profit. You may co...
分类:
其他好文 时间:
2014-05-28 22:37:18
阅读次数:
327
Given an arraySofnintegers, are there
elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which
gives the sum of zero.Note:Elemen...
分类:
其他好文 时间:
2014-05-28 16:47:30
阅读次数:
308
import java.beans.Introspector;import
java.beans.PropertyDescriptor;import java.math.BigDecimal;import
java.math.BigInteger;import java.util.ArrayList...
分类:
Web程序 时间:
2014-05-28 04:39:42
阅读次数:
363
最近研究的,我用的是python3.3,
用matplotlib画图,下面代码演示分析pcm文件,如果是wave文件,把wave的文件头去掉就是pcm文件了。代码如下 1 # -*-
coding:utf-8 -*- 2 3 import array 4 import os 5 from matp....
分类:
编程语言 时间:
2014-05-28 04:39:05
阅读次数:
495
题目: Say you have an array for which the ith element
is the price of a given stock on day i. If you were only permitted to complete
at most one transac...
分类:
其他好文 时间:
2014-05-28 00:55:20
阅读次数:
288
题目: Say you have an array for which the ith element
is the price of a given stock on day i. Design an algorithm to find the maximum
profit. You may co...
分类:
其他好文 时间:
2014-05-28 00:53:26
阅读次数:
338
上一篇文章在使用持续动作过程中遇到不少问题,以获取动作类的反系动作尤为突出。所以今天把动作类找了个遍,先将大部分动作类是否实现reverse方法总结如下:
T表示实现F表示没有实现。 观察可以发现带To的方法都没有实现而By都是先了该方法,不知道引擎设计者这样设计的原因。
分类:
其他好文 时间:
2014-05-28 00:08:35
阅读次数:
262