Time complexity O(log(n)). When the question requires O(log(n)) time complexity, we always need to think whether it can be solved by binary search.For...
分类:
其他好文 时间:
2015-10-06 07:00:43
阅读次数:
176
先分别创建三张表:think_user think_group think_user_groupuser 表里有userid、username字段group 表里有groupid、email字段user_group 表里有uid、gid字段user_group 表里的uid、gid字段都作为主键然后...
分类:
其他好文 时间:
2015-10-05 11:42:20
阅读次数:
127
Not hard to think of a solution. But the key is all details.class Solution {public: /** *@param n: Given a decimal number that is passed in as ...
分类:
其他好文 时间:
2015-10-04 12:20:18
阅读次数:
257
This lesson helps you think in Reactive programming by explaining why it is a beneficial paradigm for programming. See how reactive programming helps ...
分类:
Web程序 时间:
2015-10-02 17:20:47
阅读次数:
204
最近的项目,很感动于linux和gdbserver内容,I think must write something to record it .各位对不起,图片挂了。。Ok, at first I'm very thanks to Bob. 这篇文章大部分是来自bob的一份文档,所以是转载。以下给一个...
分类:
数据库 时间:
2015-10-01 14:03:06
阅读次数:
377
1.插入多条数据:INSERT INTO think_user (user,email,date) SELECT '雪莲花开' ,'xuelianflower@qq.com',NOW()UNION ALLSELECT '青春如此浪荡' ,'youngth@yahu.com',NOW()UNION A...
分类:
数据库 时间:
2015-10-01 11:27:39
阅读次数:
211
我用的是mysql数据库服务器,thinkphp框架,我一直以为thinkphp会自动查找数据库服务器,但是这个根本错了,如果出现无法加载数据库驱动: Think\Db\Driver\那么表明你可能没有设置数据类型'DB_TYPE' => 'mysql', // 数据库类型
分类:
微信 时间:
2015-09-25 15:50:20
阅读次数:
259
最近的项目中,有一个Activity用到Fragment+ViewPager,其中一个fragment中实现了视频播放的功能,包含有SurfaceView。结果,每次打开程序第一次进入到该Activity时都会闪屏黑一下。原因就出在SurfaceView。详解: I think I found t....
分类:
移动开发 时间:
2015-09-22 18:21:01
阅读次数:
541
今天我们来对这5个题目详细分析一下,希望对大家有所帮助。注:问题来自大名鼎鼎的前端架构师Baranovskiy的帖子《So, you think you know JavaScript?》。答案也是来自大名鼎鼎的JS牛人Nicholas C. Zakas的帖子《Answering Baranovsk...
分类:
编程语言 时间:
2015-09-22 01:29:37
阅读次数:
247
名称和本质by 王垠我很喜欢 Richard Feynman 写的 《What Do You Care What Other People Think》。在最开头 Feynman 讲到他小时后的故事。他的父亲经常带他到外面散步,给他讲很多有趣的故事。他受到启发,后来成为了一名科学家。有一次,他们走到...
分类:
其他好文 时间:
2015-09-16 19:54:26
阅读次数:
154