Android中Bitmap, Drawable, Byte,ID之间的转化1. Bitmap 转化为 byte ByteArrayOutputStream out = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressForma...
分类:
移动开发 时间:
2014-08-12 18:20:44
阅读次数:
209
Insertion Sort is a simple sorting technique which was covered in previous challenges. Sometimes, arrays may be too large for us to wait around for in...
分类:
其他好文 时间:
2014-08-12 18:13:14
阅读次数:
404
#includeusing namespace std;int n,k,a[10000];int binsearch(int low,int high){ int i,len,s;while(lowk) low=len+1; else if(s>n>>k) ...
分类:
其他好文 时间:
2014-08-11 23:59:43
阅读次数:
415
/*最小生成树,用Prim算法使用BZ数组*/#include#define INF 200int g[110][110],bz[110],low[110];int min,ans,Q,n,a,b;void prim(){ int i,j,k,x; for (i=1;i<=n;i+...
分类:
其他好文 时间:
2014-08-11 23:53:13
阅读次数:
294
Phoenix(sql on hbase)简介
介绍:
Phoenix is a SQL skin over HBase delivered as a client-embedded JDBC driver targeting low latency queries over HBase data. Phoenix takes your SQL query, compile...
分类:
数据库 时间:
2014-08-11 21:28:33
阅读次数:
589
题意:给你两字符串s1,s2,用最短的字符串表示他们(公共字串输出一次)。
Sample Input
apple peach
ananas banana
pear peach
Sample Output
appleach
bananas
pearch
dp[i][j] : 第一个字符串的前 i 个 ,和第二个字符串的前 j 个最...
分类:
其他好文 时间:
2014-08-11 21:24:02
阅读次数:
264
// poj 2421 prim/*最小生成树,用Prim算法有n个城镇,已知每两个城镇的距离,其中某些城镇之间的道路已经修好,要求用最少的路径修完剩下的城镇之间的路*/#include#define InF 2000int g[110][110],bz[110],low[110];int min,...
分类:
其他好文 时间:
2014-08-11 21:09:12
阅读次数:
237
#include // poj 1258 10.1.5.253 1505using namespace std; #define N 105 // 顶点的最大个数 (多写 int a[N][N],low[N],n,ans;int min(int x,int y){ ...
分类:
其他好文 时间:
2014-08-11 21:08:32
阅读次数:
198
#include using namespace std;//二分查找算法实现int BinarySearch(int a[],int len,int findnum){ int low = 0; int high = len - 1; while(low fin...
分类:
其他好文 时间:
2014-08-11 17:18:42
阅读次数:
198
这两天在折腾给一个项目打安装包,第一次接触软件打包,用的Advanced Installer(以下简称AI),应该说如果安装过程没有特殊动作(常规动作指释放文件、写注册表、建快捷方式等)的话,倒挺傻瓜的,按照向导和界面操作就能打好一个包。但我的安装动作包括:- 提供一个ComboBox列出已安装打印...
分类:
其他好文 时间:
2014-08-11 14:44:02
阅读次数:
247