1. trim trim('aaa' from 'aaabbbccc') 这个是错误的。ora-30001: trim set should have only one character 2. initcap() 首字母变为大写 3. RMAN:minimize load 在10g之后,可以在ba...
分类:
其他好文 时间:
2014-07-05 18:22:45
阅读次数:
245
pyPdf库 (http://pybrary.net/pyPdf/) ,操作起来相当直接易懂,把代码贴在这儿,做个记录。1frompyPdfimportPdfFileWriter,PdfFileReader23pdf=PdfFileReader(file('original.pdf','rb'))4...
分类:
编程语言 时间:
2014-07-05 11:19:02
阅读次数:
286
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of...
分类:
其他好文 时间:
2014-07-04 07:35:58
阅读次数:
215
题目描述There are N tasks and M resources, each task is asked to use some resources and each resource can only be used by at most one task. You are asked ...
分类:
其他好文 时间:
2014-07-03 20:35:23
阅读次数:
274
函数page_get_cache代码:function page_get_cache($status_only = FALSE) { static $status = FALSE; global $user, $base_root; if ($status_only) { return ...
分类:
其他好文 时间:
2014-07-03 20:04:26
阅读次数:
210
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-07-03 19:38:58
阅读次数:
287
题目
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the...
分类:
其他好文 时间:
2014-07-03 17:51:01
阅读次数:
235
题目连接:uva 10622 - Perfect P-th Powers
题目大意:对于x,如果存在最大的p,使得有整数满足x=bp,则称x为perfect
pth power。现在给出x,求p。
解题思路:将x分解质因子,所有置因子的个数的最大公约数即为所求p,需要注意的是x为负数的时候,p必须为奇数。
#include
#include
#include
const...
分类:
其他好文 时间:
2014-07-03 16:56:13
阅读次数:
233
Team USA Soccer Gear Sales Get World Cup AssistMaybe there's something to all that talk aboutAmerica catching the soccer bug. The recent success of th...
分类:
其他好文 时间:
2014-07-02 17:38:55
阅读次数:
258
The Story:Last week, I found one of our embedded arm linux device ran out of flash space( totally only 128M for apps and OS).After checking for a whil...
分类:
其他好文 时间:
2014-07-02 14:30:13
阅读次数:
317