- 博客(4)
- 收藏
- 关注
原创 [LeetCode] Nim Game
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the
2016-03-29 13:04:10 296
原创 [LeetCode] 338. Counting Bits
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them as an array. Example: For num = 5
2016-03-29 12:54:30 422
原创 JAVA回调
场景: 学弟写代码的时候遇到一个问题要请教学长。 学长说你把代码发过来看看,可能需要一点时间,你先做其他,解决了我给你发QQ消息。 过了学弟收到了QQ消息,学弟解决了问题。//qq发消息是个接口函数 public interface QQ{ public void msg(String txt); }//学弟类 //包含一个学长对象引用 //实现了QQ发消息的接口方法 public clas
2016-03-22 11:28:52 319
原创 在android studio中使用greenDao
最近项目重构,我负责android客户端数据库操作的封装,调研时发现了一款超级好用的ORM数据库框架——greenDao!看了greenDao官网的说明,发现这个框架比之前用的ORMLite快很多,采用自动生成代码的方式也让人眼前一亮,于是决定试一试。好了,话不多说,上代码!一、配置工程1、在../app/src/main 目录下新建Directory命名为java-gen-db,用于存放green
2016-03-02 17:15:27 1460
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人