Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th...
分类:
其他好文 时间:
2014-11-26 13:37:24
阅读次数:
123
// 检查更新- (void)updateVersion{ // 获取app版本 NSDictionary *infoDictionary = [[NSBundlemainBundle] infoDictionary]; NSString *currentVersion = [infoDict...
分类:
其他好文 时间:
2014-11-26 13:34:27
阅读次数:
143
1.类型的判断:js五种简单数据类型有:null,undefined,boolean,number,string。还有复杂的数据类型:Object,Function,RegExp,Date,自定义的对象,比如:Person等。typeof一般用来判断boolean,number,string,ins...
分类:
其他好文 时间:
2014-11-26 13:31:12
阅读次数:
164
Let S = s1 s2 ... s2n be a well-formed string of parentheses. S can be encoded in two different ways:
By an integer sequence P = p1 p2 ... pn where pi is the number of left parentheses before the...
分类:
编程语言 时间:
2014-11-26 11:27:01
阅读次数:
374
有时候上传的产品与多级分类比较多,在后台添加文本属性如Name,Number等需要顾客自定义的内容就比较费神了。现在只需将以下代码保存为insert_attributes.php,变量$options_id_array,$current_category_id修改为实际的值,上传到网站根目录运行即可...
分类:
其他好文 时间:
2014-11-26 10:59:49
阅读次数:
163
nuget命令的用法:Install-Package 安装包 -Version 4.3.1 参数指定版本Uninstall-Package 卸载包Update-Package 更新包Get-Package 默认列出本地已经安装了的包 可以加参数 -remote-filter entityframew...
分类:
其他好文 时间:
2014-11-26 10:55:52
阅读次数:
156
Sum Root to Leaf NumbersGiven a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-l...
分类:
其他好文 时间:
2014-11-26 10:51:51
阅读次数:
169
-define(PAGECOUNT,3). %定义自己的页容量Pre = (Page -1) * ?PAGECOUNT, %页首 Tail = Page * ?PAGECOUNT + 1, %页尾 Query=ets:fun2ms(fun(Data=#process_state{number=N.....
分类:
其他好文 时间:
2014-11-26 06:37:21
阅读次数:
159
yum -y install subversion #安装SVN? svnserve -- version #查看svn版本信息确定是否安装 yum -y install httpd #安装Apache? yum -y install mod_dav_svn #安装Apache的SVN支持 mkdir -p /var/www/svn #创建S...
分类:
Web程序 时间:
2014-11-25 23:57:44
阅读次数:
401
/*********************************************************************************
Copyright (C), 1988-1999, drvivermonkey. Co., Ltd.
File name:
Author: Driver Monkey
Version:
Mail:bo...
分类:
其他好文 时间:
2014-11-25 23:32:04
阅读次数:
320