- 博客(9)
- 资源 (5)
- 收藏
- 关注
原创 实现JAVA上传数据至PHP服务器存储(SAE)
Java客户端实现数据上传至PHP服务器(搭载在SAE) PHP上传功能DEMO: 上传文件 <?php if(isset($_POST[up])){ $s2 =new SaeStorage();//实例化 $name =$_FILES['myfile']['name'];//上传到服务器的文件名称 if($s2->upload('20141
2015-05-16 15:45:12 1203
转载 Android高效加载大图、多图解决方案,有效避免程序OOM
转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/9316683 本篇文章主要内容来自于Android Doc,我翻译之后又做了些加工,英文好的朋友也可以直接去读原文。 http://developer.android.com/training/displaying-bitmaps/index.html 高效加载大图
2015-05-07 21:49:45 481
原创 LeetCode-77 Combinations(组合)
LeetCode-77 Combinations(组合) Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a solution is: [ [2,4], [3,4], [2,3
2015-05-02 12:06:29 1145
原创 LeetCode-73 Set Matrix Zeroes(设置零矩阵)
LeetCode-73 Set Matrix Zeroes(设置零矩阵) Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show follow up. Follow up: Did you use extra space? A s
2015-05-02 11:46:56 730
原创 LeetCode-70 Climbing Stairs(斐波那契数列)
LeetCode-70 Climbing Stairs(斐波那契数列) 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 climb to the t
2015-05-02 11:35:31 1047
原创 LeetCode-69 Sqrt(x)
LeetCode-69 Sqrt(x) Implement int sqrt(int x). Compute and return the square root of x. 思路:二分法。 比较要留意的是right left 的处理。 public class Solution { public int mySqrt(int x) { if (x == 0)
2015-05-02 11:30:18 681
原创 LeetCode-67 Add Binary(二进制数相加)
LeetCode-67 Add Binary(二进制数相加) Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". public class Solution { public String addBin
2015-05-02 11:18:08 939
原创 LeetCode-56 Merge Intervals(合并区间)
LeetCode-56 Merge Intervals(合并区间) Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. /** * Definition
2015-05-02 11:11:58 726
转载 LeetCode-50 Pow(x, n)
Implement pow(x, n). 觉得这道题看似简单,但是却有很多细节上容易忽略的点。 在此转了别人的考虑的地方及代码 1) x取值为0时,0的正数次幂是1,而负数次幂是没有意义的;判断x是否等于0不能直接用“==”。 2) 对于n取值INT_MIN时,-n并不是INT_MAX,这时需要格外小心。 3) 尽量使用移位运算来代替除法运算,加快算法执行的速度。 pu
2015-05-02 11:05:31 576
Android贪吃蛇程序代码分享
2015-01-24
mars-android-gps定位源码(3个)
2014-08-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人