1 Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determ...
分类:
编程语言 时间:
2015-05-21 12:48:33
阅读次数:
144
1.和之间的输出?加入or均可正常运行2.换行,用会换两行使用元素时必须封闭3.标签:点击这里标签之间定义显示内容,内部定义button性质
分类:
Web程序 时间:
2015-05-19 18:52:58
阅读次数:
113
1 Pow(x, n)
该题采用二分法进行递归double myPow(double x, int n) {
if(n==0) return 1;
if(n<0)
{
n=(-n);
x=1/x;
}
double res=myPow(x,n/2);
i...
分类:
编程语言 时间:
2015-05-19 13:12:26
阅读次数:
168
1.在做第一个实验Lab 1: Booting a PC时,编译lab 时出错lib/printfmt.c:42:对‘__udivdi3’未定义的引用lib/printfmt.c:50:对‘__umoddi3’未定义的引用原因:由于在printfmt.c文件中用了libgcc.a中的库函数,但是我的...
分类:
其他好文 时间:
2015-05-19 00:38:57
阅读次数:
506
1 Rotate Image
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).
对于 n x n 的矩阵按顺时针旋转90度,相当于先将矩阵上下翻转,然后将矩阵装置。void rotate(vector<vector>& matrix) {...
分类:
编程语言 时间:
2015-05-18 12:58:39
阅读次数:
139
1 Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-negative.
该题实际就是利用字符串来解决大数的乘法问题。为了...
分类:
编程语言 时间:
2015-05-17 16:50:18
阅读次数:
159
集群环境中多个节点同时修改数据导致数据错乱的问题...
分类:
其他好文 时间:
2015-05-16 18:24:04
阅读次数:
160
1 Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C...
分类:
编程语言 时间:
2015-05-16 12:00:54
阅读次数:
139
当我们保存图片后就会发个通知告诉系统让sdcard重新挂载,这样其他程序就会立即找到这张图片。 Intent intent = new Intent();
intent.setAction(Intent.ACTION_MEDIA_MOUNTED);
intent.setData(Uri.fromFile(Environment...
分类:
移动开发 时间:
2015-05-16 12:00:33
阅读次数:
239
实现远程访问HBase,可以通过Eclipse开发工具方便进行代码调试。为了方便jar包各种版本的管理,才用maven进行代码构建首先,下载并安装maven以及M2Eclipse插件其次,配置maven的pom.xml文件,加入如下依赖 org.apache.hbase hbase-cl...
分类:
系统相关 时间:
2015-05-16 11:44:37
阅读次数:
257