Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e...
分类:
其他好文 时间:
2014-08-19 14:24:14
阅读次数:
182
The original page sourceContent is the most important aspect of any site. So let's design for the content and not let the design dictate(命令) the conte...
分类:
其他好文 时间:
2014-08-19 12:32:14
阅读次数:
210
LCM (Least Common Multiple) of a set of integers is defined as the minimum number, which is a multiple of all integers of that set. It is interesting to note that any positive integer can be expressed...
分类:
其他好文 时间:
2014-08-18 23:38:13
阅读次数:
275
dijkstra算法,最简单的实现需要$O(|V|^2)$。用binary heap实现,可以优化到O((|V|+|E|)lg|V|),如果用fibonacci heap的话,可以优化到O(|E|+|V|lg|V|)。如果图是密集图的话,那这个优化效果也不好,接近$O(|V|^2)$。For any...
分类:
其他好文 时间:
2014-08-18 21:51:52
阅读次数:
396
Wildcard Matching
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequen...
分类:
其他好文 时间:
2014-08-18 18:34:13
阅读次数:
214
SQLPlus directive "WHENEVER SQLERROR EXIT 1" will return a specified code when any SQL error throwed when run a sql file.Then we can catch the return ...
分类:
数据库 时间:
2014-08-18 18:06:22
阅读次数:
279
题目:
You are given a binary tree with unique integer values on each node. However, the child pointers on each node may point to any other node in the tree including itself, introducing cycles into the...
分类:
其他好文 时间:
2014-08-17 09:11:11
阅读次数:
301
Description
There are two rows of positive integer numbers. We can draw one line segment between any two equal numbers, with values r, if one of them is located in the first row and the other one i...
分类:
其他好文 时间:
2014-08-16 23:52:01
阅读次数:
560
不理解Meta Property=og标签是什么意思,以及对SEO的影响,看一下下面的介绍。Meta Property=og标签是什么呢?og是一种新的HTTP头部标记,即Open Graph Protocol:The Open Graph Protocol enables any web page...
分类:
其他好文 时间:
2014-08-16 22:20:41
阅读次数:
236
leetcode这道题还挺有意思的,实现通配符,'?'匹配任意字符,'*'匹配任意长度字符串,晚上尝试了一下,题目如下:Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single chara...
分类:
其他好文 时间:
2014-08-16 01:01:59
阅读次数:
351