1. Two Sum 最基础的一道题,方法很多,用HashMap存pair是一种(HashSet和HashMap的方法在这里原理是一样的)。也可以sort the whole array first,then use two pointers, one start from the left sid...
分类:
其他好文 时间:
2015-02-13 13:00:58
阅读次数:
127
1. ARM Device Tree起源Linus Torvalds在2011年3月17日的ARM Linux邮件列表宣称“this whole ARM thing is a f*cking pain in the ass”,引发ARM Linux社区的地震,随后ARM社区进行了一系列的重大修正。在...
分类:
其他好文 时间:
2015-02-12 18:20:17
阅读次数:
177
You can try this to install 32 lib(not all in ia32-libs): apt-get install program:i386.Or if you want to install the whole ia32-lib instead, try the f...
分类:
系统相关 时间:
2015-02-06 00:40:18
阅读次数:
287
安全性:Sandstorm在确保安全不是个问题的同时让你远离邪恶(或者bug无极限)的应用。Sandstorm is designed by security wonks. Where most developers don't want to think about security, we care deeply about it, and have designed the whole sy...
分类:
其他好文 时间:
2015-02-03 11:07:50
阅读次数:
250
聚合,聚合关系是关联关系的一种,聚合是整体和个体之间的关系。Aggregation is used to represent ownership or a whole/part relationship。一般的表现形式是一个类持有另一个类作成员变量来体现,但绝对不可以New它。聚合关系当一个类destory的时候,持有的另一个类不会受到影响。聚合是"has a",有一个,但它不一定只是你自己的,也可以被另的类有。
组合,组合关系是关联关系的一种,是比聚合关系强的关系。它要求普通的聚合关系中代表整体...
分类:
其他好文 时间:
2015-01-31 18:00:54
阅读次数:
341
很多东西已经记不起来了,想到一点写一点,碰到一点写一点,慢慢累积。关于##在宏定义中用于替换传入变量的字符,例如: #define whole_operation(n) do { printf(#n "=%d\n", (n));} while(0);调用whole_operation(5*6), ....
分类:
编程语言 时间:
2015-01-26 19:14:00
阅读次数:
303
微软近期Open的职位:Microsoft’s Operating Systems Group delivers the operating system and core user experiences for the whole family of Microsoft devices, for...
Problem Description
There is a company that has N employees(numbered from 1 to N),every employee in the company has a immediate boss (except for the leader of whole company).If you are the immediat...
分类:
其他好文 时间:
2015-01-17 18:06:01
阅读次数:
370
Linus大神又在rant了!这次的吐槽对象是时下很火热的并行技术(parellism),并直截了当地表示并行计算是浪费所有人时间(“The
whole “let’s parallelize” thing is a huge waste of everybody’s time.”)。大致意思是说乱序性能快、提高缓存容量、降功耗。当然笔者不打算正面讨论并行的是是非非(过于宏伟的主题),因为Lin...
分类:
其他好文 时间:
2015-01-10 16:38:03
阅读次数:
139
If we run a Gradle build and one of the tasks fails, the whole build stops immediately. So we have fast feedback of our build status. If we don't want...
分类:
其他好文 时间:
2014-12-26 21:31:21
阅读次数:
262