http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.htmlpython中re.match()与re.search()的区别是前者从字符串开始位置匹配,后者是字符串中匹配在学习中发现某一部分的代码,用法和实验结果不同时,查找相关方法和代码的用...
分类:
编程语言 时间:
2014-07-24 14:37:35
阅读次数:
281
Google Custom Search Engines use a timer to check the hash against a previous value, whilst the child iframe on a seperate domain updates the parent‘s location hash to contain the size of the ifram...
分类:
Web程序 时间:
2014-07-24 12:31:35
阅读次数:
289
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 1
\...
分类:
编程语言 时间:
2014-07-24 11:35:42
阅读次数:
245
Home ?|? Mirror ?|? Search ?|? 杂文 ?|? ITEYE 博客 ?|? OSChina 博客 ?|? 51CTO 博客 ?|? Linkedin PHP 高级编程之多线程 http://netkiller.github.io/journal/thread.php.html Mr.?Neo Chen?...
分类:
编程语言 时间:
2014-07-24 10:55:14
阅读次数:
618
实现: 1 #ifndef BINARY_SEARCH_TREE_H 2 #define BINARY_SEARCH_TREE_H 3 4 #include "dsexceptions.h" 5 #include // For NULL 6 using namespace st...
分类:
其他好文 时间:
2014-07-24 10:03:33
阅读次数:
398
最近项目在使用MVC。项目中有个地址为:www.xxx.com/search/search.html,从这个页面点击QQ登录时,地址为:www.xxx.com/passport/QQLogin.html?returl=/search/search.html此时,QQ登录总是不成功。但是同样的情况,如...
分类:
Web程序 时间:
2014-07-24 00:49:27
阅读次数:
243
题意:
给你个序列和一串询问 询问前a[i]个数字第i小的是几
思路:
动态的第k值问题 由于区间只增不减所以是水题
利用平衡树解决这类问题
treap是方便编写的类似平衡树的产品
treap方便实现BST的功能 splay更适合于去维护区间
代码:
#include
#include
#include
#include
#include
using name...
分类:
其他好文 时间:
2014-07-23 22:35:48
阅读次数:
234
网上找了很多资料,PHP的比较多,然后找到有csv文件的,处理起来很麻烦,国外的网站速度很慢。
最后还是去页面上抓取数据,我是从中国银行抓取的,各位可去其他网站抓取。
1、模拟请求URL。
string url = "http://srh.bankofchina.com/search/whpj/search.jsp?pjname=1316";
HttpWebRequest reques...
分类:
Web程序 时间:
2014-07-23 17:00:01
阅读次数:
228
People who use computers ghd hair straighteners go for movie star times, Search for, Stop GHD Peacock 2013 well-accepted showdowns, And luxuriate in b...
分类:
其他好文 时间:
2014-07-23 15:15:36
阅读次数:
232
JS中两种创建正则表达式的方式: ? ? 1,使用new关键字创建 ? ?? ???var box = new RegExp(‘box‘,‘ig‘);??//第一个参数是模式字符串,两个反斜杠是正则表达式的字面量表示方法, ? ?? ???//第二个...
分类:
编程语言 时间:
2014-07-23 13:59:16
阅读次数:
243