码迷,mamicode.com
首页 >  
搜索关键字:regular expressions    ( 2287个结果
POJ 1141 Brackets Sequence (区间DP)
Description Let us define a regular brackets sequence in the following way: 1. Empty sequence is a regular sequence. 2. If S is a regular sequence, then (S) and [S] are both regular sequences....
分类:其他好文   时间:2014-07-30 20:44:34    阅读次数:267
POJ 3367 Expressions(数据结构-二叉树)
POJ 3367 Expressions(数据结构-二叉树) 题目大意: 给你一个满二叉树的后序遍历,小写字母表示叶子节点,将这课树按照从下到上,从右到左顺序输出。 解题思路: 先建立二叉树,用堆栈实现。 然后输出,用队列实现。...
分类:其他好文   时间:2014-07-30 14:49:13    阅读次数:268
UVa 401 Palindromes(字符串,回文)
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-07-29 21:57:12    阅读次数:308
linux 文件类型
linux 文件类型应用商店的小镜子我们在刚刚提到使用『ls -l』观察到第一栏那十个字符中,第一个字符为档案的类型。 除了常见的一般档案(-)(d),还有哪些种类的文件类型呢?· 正觃档案(regular file ): 就是一般我们在迚行存取的类型的档案,在由 ls -al 所显示出来的属怅方面...
分类:系统相关   时间:2014-07-29 13:30:08    阅读次数:314
Using Regular Expressions in Python
1. 反斜杠的困扰(The Backslash) 有时候需要匹配的文本带有'\',如'\python',因为正则表达式有些特殊字符有特殊意义,所以需要前面加上'\'来消除特殊意义,这里匹配的正则表达式是'\\python',这时候如果要编译这个正则表达式需要re.compile('\\\\pyth....
分类:编程语言   时间:2014-07-27 23:09:09    阅读次数:308
【leetcode刷题笔记】Regular Expression Matching
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:其他好文   时间:2014-07-26 01:37:06    阅读次数:221
Python正则表达式 re(regular expression)
1.点..:代表一个字符(这个跟linux的正则表达式是不同的,那里.代表的是后面字符的一次或0次出现)2.转义\\或者r‘\‘:如r‘python\.org‘(对.符号的转义)3.^非或叫做排除如[^abc]:任何以非a,b,c的字符4.|选择符如python|perl(从python和perl选择一个)也可以:p(ython|erl)5.?可..
分类:编程语言   时间:2014-07-24 23:53:34    阅读次数:292
UVA11234 Expressions
建树时就是碰到小写,就建个小树,左子树右子数都是空,压入栈; 碰到大写,也要建个小树,并把栈顶两个元素取出来,作为做子树和右子树。。在把新树压入栈 建完后栈顶就是这个树的根,采用广搜遍历就行。。...
分类:其他好文   时间:2014-07-22 18:04:33    阅读次数:187
Lambda Expressions 笔记
随Java 8发布,"The Java(TM) Tutorials"增加了关于“Lambda Expressions”的教程。本文是此教程的总结、摘要。
分类:其他好文   时间:2014-07-22 00:21:35    阅读次数:282
玩儿~
一些奇怪的?unix 指令名字的由來 http://netlab.cse.yzu.edu.tw/~statue/freebsd/docs/unixfaq/node4.html ????grep = "Global Regular Expression Print" grep 源自 ed。用來列印所有符合某 pattern 的指令...
分类:其他好文   时间:2014-07-21 13:24:44    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!