Problem E: ExpressionsArithmetic expressions are usually written with the operators in between the two operands (which is called infix notation). For ...
分类:
其他好文 时间:
2014-08-10 18:22:40
阅读次数:
362
要安装Nginx,至少需要先安装pcre, zlib、ssl1. PCRE(Perl Compatible Regular Expressions)这是一个Perl库,用来实现重写rewrite的目的//cmdyum -y install gcc gcc-c++cd /usr/local/wget ...
分类:
其他好文 时间:
2014-08-09 23:13:39
阅读次数:
790
Palindromes
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when t...
分类:
其他好文 时间:
2014-08-09 21:36:09
阅读次数:
344
Regular Expression MatchingImplement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more o...
分类:
其他好文 时间:
2014-08-08 17:59:16
阅读次数:
173
Brackets SequenceTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 25132Accepted: 7083Special JudgeDescriptionLet us define a regular brackets ...
分类:
其他好文 时间:
2014-08-07 18:30:01
阅读次数:
196
官方文档是这么写的
Translating directly to Python means you can apply functions to expressions easily, like the escape() function in
the examples above. You can pass functions in to your template just like...
分类:
其他好文 时间:
2014-08-07 13:09:00
阅读次数:
204
Brackets Sequence
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 25087
Accepted: 7069
Special Judge
Description
Let us define a regular brackets seq...
分类:
其他好文 时间:
2014-08-06 10:29:51
阅读次数:
352
题目:Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding elem....
分类:
编程语言 时间:
2014-08-06 04:11:20
阅读次数:
429
题目大意:
给定一颗满二叉树的后序遍历,小写字母表示叶子节点,以从下到上,从右到左的顺序输出这棵树。
解题思路:
用堆栈构建二叉树,再用bfs遍历树,用堆栈逆序输出。
注意:构树时,若节点用malloc动态分配会超时。...
分类:
其他好文 时间:
2014-08-03 18:13:15
阅读次数:
277
1 ?引言? ? ??Grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并?把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。G...
分类:
系统相关 时间:
2014-07-31 17:26:59
阅读次数:
466