di = $di; } /** * Runs the application performing all initializations * * @param $options * * @return mixed */ public...
分类:
Web程序 时间:
2014-07-24 10:15:43
阅读次数:
310
题目:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep c....
分类:
编程语言 时间:
2014-07-24 10:00:33
阅读次数:
310
Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click...
分类:
其他好文 时间:
2014-07-24 09:57:33
阅读次数:
179
题目:Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2-....
分类:
编程语言 时间:
2014-07-24 09:53:16
阅读次数:
219
题目:Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->....
分类:
编程语言 时间:
2014-07-24 09:49:43
阅读次数:
204
`1.CGRectInset````CGRect CGRectInset ( CGRect rect, CGFloat dx, CGFloat dy);````return rect which is smaller or larger than the source with the...
分类:
其他好文 时间:
2014-07-24 05:05:48
阅读次数:
264
#includeint i,j,s1,s2;int cha(int a,int b){s1=0;s2=0; for(i=1;i<a;i++) { if(a%i==0) s1+=i; } for(i=1;i<b;i++) { if(b%i==0) s2+=i; } if(s1==b&&s2==a) p...
分类:
其他好文 时间:
2014-07-24 05:00:58
阅读次数:
201
前台Ajax请求很多时候需要从后台获取JSON格式数据,一般有以下方式:拼接字符串return Content("{\"id\":\"1\",\"name\":\"A\"}");为了严格符合Json数据格式,对双引号进行了转义。使用JavaScriptSerialize.Serialize()方法将...
分类:
Web程序 时间:
2014-07-24 00:49:37
阅读次数:
289
1.存储过程没有返回值的情况(即存储过程语句中没有return之类的语句)用方法 int count = ExecuteNonQuery(..)执行存储过程其返回值只有两种情况(1)如果通过查询分析器执行该存储过程,在显示栏中如果有影响的行数,则影响几行count就是几(2)如果通过查询分析器执行该...
分类:
数据库 时间:
2014-07-23 22:22:17
阅读次数:
300
prim算法模板int prim(int x){ int i,j,sum=0,min=M,k; memset(vit,0,sizeof(vit)); memset(dis,0,sizeof(dis)); for(i=1;ip[k][j]) dis[j]=p[k][j]; } } } return ....
分类:
其他好文 时间:
2014-07-23 22:10:17
阅读次数:
205