函数fn:contains(string, substring) 如果参数string中包含参数substring,返回truefn:contains 判断字符串是否包含另外一个字符串 fn:containsIgnoreCase(string, substring) 如果参数string中包含参数s...
分类:
Web程序 时间:
2014-07-16 21:54:28
阅读次数:
265
要在List中查找特定的元素,可以使用Contains() 、IndexOf()、LastIndexOf()和BinarySearch()方法。除了LastIndexOf()是从最后一个元素开始以外,其他的都是从第一个元素开始搜索,检查每一个元素,直到发现目标元素。集合类不要求集合中所有的元素都是....
分类:
其他好文 时间:
2014-07-16 20:49:33
阅读次数:
156
The partial sum problem时间限制:1000 ms | 内存限制:65535 KB 难度:2描述One day,Tom’s girlfriend give him an array A which contains N integers and asked him:Can you...
分类:
其他好文 时间:
2014-07-16 19:24:53
阅读次数:
181
java的集合一般指的就是java.util.Collection的子类。java的映射一般指的就是java.util.Map的子类。我们没有必要去看所有的API,但是基本的方法还是应该知道的。集合中包含的方法:size()isEmpty()contains(Object)iterator()toA...
分类:
其他好文 时间:
2014-07-15 23:35:32
阅读次数:
294
The slice operator can take a third argument that determines the step size, so t[::2] creates a list that contains every other element from t. If the ...
分类:
其他好文 时间:
2014-07-15 09:12:42
阅读次数:
328
[root@luozhonghua FCGI-0.71]# perl Makefile.PL
can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5...
分类:
其他好文 时间:
2014-07-13 18:32:48
阅读次数:
281
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:
其他好文 时间:
2014-07-13 16:53:01
阅读次数:
189
THE DRUNK JAILER
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 23246
Accepted: 14641
Description
A certain prison contains a long hall of n cells, each rig...
分类:
其他好文 时间:
2014-07-13 13:46:41
阅读次数:
265
/*
A - THE DRUNK JAILER
Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
POJ 1218
Description
A certain prison contains a long hall of n cells, ea...
分类:
其他好文 时间:
2014-07-12 18:16:27
阅读次数:
219
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:
其他好文 时间:
2014-07-12 17:26:31
阅读次数:
256