Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the fir...
分类:
其他好文 时间:
2014-07-22 22:51:35
阅读次数:
146
Underscore 简介 Underscore 是一个JavaScript实用库,提供了类似Prototype.js的一些功能,但是没有继承任何JavaScript内置对象。它弥补了部分jQuery没有实现的功能,同时又是Backbone.js必不可少的部分。 Underscore提供了80多个函...
分类:
Web程序 时间:
2014-07-22 22:51:35
阅读次数:
217
直接在linearlayout中设置gravity属性,而不是在控件中设置。另外设置weight的时候,最好让所有的控件处在一个布局中
分类:
其他好文 时间:
2014-07-22 22:51:35
阅读次数:
179
泪滴 是焊盘与导线或者是导线与导孔之间的滴装连接过度,设置泪滴的目的是在电路板受到巨大外力的冲撞时,避免导线与焊盘或者导线与导孔的接触点断开,另外,设置泪滴也可使PCB电路板显得更加美观。teardrop的作用是避免信号线宽突然变小而造成反射,可使走线与元件焊盘之间的连接趋于平稳过渡化,解决了焊盘与...
分类:
其他好文 时间:
2014-07-22 22:51:17
阅读次数:
169
#include #include #include #include using namespace std;const int MAX = 1010;char s1[MAX],s2[MAX];int s[MAX];int main(){ int n, c, m, count = 1; ...
分类:
其他好文 时间:
2014-07-22 22:51:16
阅读次数:
145
PerformanceNow that we have a basic model for how things are working, let's consider some things that could go wrong that would make it slow. That wil...
分类:
其他好文 时间:
2014-07-22 22:51:16
阅读次数:
258
JS Bin function darwTrails(){ var canvas = document.getElementById('drawRect'); var context = canvas.getContext('2d'); context.save(); contex...
分类:
其他好文 时间:
2014-07-22 22:51:16
阅读次数:
154
逻辑错误的代码 1 //想了很久,发现自己做这道题时犯了一个大BUG。我的思路是,把一组钥匙看成一对X,-X。把 2 //门确定的关系连边。其实这样是有错的,因为边的意义是“必须”,而实际上,门确定的只是矛盾 3 //关系。不是必须是,不是门上锁其中一个选或不选就能影响到另一个。 4 ...
分类:
其他好文 时间:
2014-07-22 22:51:15
阅读次数:
291
先从一个例子开始讲起,以下是jdk1.7中的迭代器接口的代码(去掉了注释的部分): public interface Iterator { boolean hasNext(); E next(); void remove();} 程序开发的老油条们都不太喜欢这个接口的remove方法,原因可能是: ...
分类:
其他好文 时间:
2014-07-19 23:01:14
阅读次数:
206
Function Types as Return Types (函数类型作为返回值类型) 一个函数的类型可以作为另一个函数的返回值类型.可以在一个函数的返回值箭头后面写上一个完整的函数类型. 例如: 下面的例子定义了两个简单的函数,分别为stepForward 和 stepBackward.其...
分类:
移动开发 时间:
2014-07-19 23:00:50
阅读次数:
353