1.感受一下深搜代码 1 void Set_01(int k){ 2 if(k==MAXN){ 3
Print_ans(k); 4 return; 5 } 6 for(int i=0;i<2;i++){ 7 ans[k]=i; ...
分类:
其他好文 时间:
2014-06-29 15:12:54
阅读次数:
197
Given a linked list, swap every two adjacent
nodes and return its head. For example, Given 1->2->3->4, you should
return the list as 2->1->4->3. Your ...
分类:
其他好文 时间:
2014-06-29 14:39:10
阅读次数:
268
同时适合IE、firefox、谷歌浏览器下适用,经过筛选代码如下//禁用右键、文本选择功能、复制按键$(document).bind(“contextmenu”,function(){return
false;});$(document).bind(“selectstart”,function(){...
分类:
Web程序 时间:
2014-06-29 14:38:07
阅读次数:
251
function test(){return
"hello";}alert(test);这个显示是变量test的值,它正好是个函数,这是第一个警告对话框显示的结果:function
test(){return "hello";}alert(test());圆括号()告诉它执行函数test,并显示它的...
分类:
Web程序 时间:
2014-06-29 14:21:45
阅读次数:
271
class Solution {public: int
lengthOfLastWord(const char *s) { if (s == NULL) return 0; int mlen = 0, len =
0; bool inword = fa...
分类:
其他好文 时间:
2014-06-29 14:13:37
阅读次数:
229
在CL里我们可以这样:1 $ sbcl2 * (+ 1 2 3)3 64 * ( 2
template 3 bool cmp(O o, A a,B b){ 4 return o(a, b); 5 } 6 template 7 bool cmp(O
o,A a,B b,C... c){ 8 ...
分类:
编程语言 时间:
2014-06-07 04:42:31
阅读次数:
270
private CollectionViewSource wgdData = new
CollectionViewSource(); private DataTable Ds_wgd { get { return
this.dgv_wgd.ItemsSource ...
Given an arraySofnintegers, find three integers
inSsuch that the sum is closest to a given number, target. Return the sum of the
three integers. You m...
分类:
其他好文 时间:
2014-05-29 11:04:43
阅读次数:
200
第一种定义,是很好的面向接口编程的习惯。比如你有这么一个方法供别人调用:public List
getXXXList(){ List list = new ArrayList(); ... return list;}现在是new
ArrayList(),如果万一以后要改成new LinkedList...
分类:
其他好文 时间:
2014-05-29 10:44:05
阅读次数:
239
#region HttpRequestGet public string
HttpRequestGet(string url) { return HttpRequestGet(url,
WebRequestMethods.Http.Get, "...
分类:
Web程序 时间:
2014-05-29 09:37:17
阅读次数:
307