- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 微信开发之access_token之坑
首先不得不提到access_token的分类,一是普通access_token,二是网页授权access_token。其中前者是用于调用微信提供的各种借口,作为开发者的调用凭证,一般有效期为7200S,获取次数受限;另一种是第三方网页若需要使用用户微信账户登录,需要获取该access_token从而来获取用户微信账户信息。这个一定得区分开。 另外获取用户微信账户信息也有两种情况,一是普通的
2016-09-21 21:32:37 25439 4
原创 Median of Two Sorted Arrays
**question:**There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1: nums1
2016-09-11 15:41:40 380
原创 java设计模式之模板方法模式
定义:Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm’s stuct
2016-09-06 19:20:08 270
原创 java自增策略小陷阱
首先,来一段小程序,我们先猜猜运行结果是怎样?/** * Created by Song on 2016/8/29. * 自增长测试 */public class Main { public static void main (String [] args){ int num = 0; for (int i =0; i<10;i++){
2016-09-01 16:38:53 834
原创 java设计模式之抽象工厂模式
定义:*Provide an interface for creating families of related or dependent objects without specifying their concrete classes. 即为一组相关或相互依赖的对象提供一个实例化接口,而且无需指定他们的具体类。说白了,相对于之前提到的工厂方法模式,抽象工厂模式在创建对象实例时无需传入任
2016-09-01 11:07:44 554
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人