最近数据处理时经常发现有数字中含有大量字符,执行过程报“ORA-01722:?invalid?number”异常,整理了一下,可以有以下几种方法去除: 1、replace 用法简单,写法较复杂,只能处理已知字符 ??With?test_tabl...
分类:
数据库 时间:
2014-10-23 10:49:33
阅读次数:
214
二、以下示例将返回行号为 50 到 60(含)的行,并以 OrderDate 排序。USE AdventureWorks;GOWITH OrderedOrders AS(SELECT SalesOrderID, OrderDate,ROW_NUMBER() OVER (order by OrderD...
分类:
数据库 时间:
2014-10-22 21:45:33
阅读次数:
323
题意
给出一串由D,I,?构成的长为n的字符串,这个字符串表示满足某种规则的1到n+1的排列集合,D表示该位置数字比前面一个小,I表示该位置的数字比前面一个大,?表示不确定可D可I
比如
满足DI的数字排列有3,1,2和2,1,3
1
设计的dp如下
dp[i][j] 代表满足上述字符串前i-1项的长为i尾巴为j的1到i的排列数目
当第i-1项为D时
dp[...
分类:
其他好文 时间:
2014-10-22 20:27:07
阅读次数:
186
Description
Every year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how many children call on him, so it ma...
分类:
其他好文 时间:
2014-10-22 20:24:03
阅读次数:
307
The number of steps
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
Mary stands in a strange maze, the maze looks like a triangle(the first layer have one room,the ...
分类:
其他好文 时间:
2014-10-22 20:22:52
阅读次数:
235
[Description] Given an array with only '1' and '0', find a largest length sub-array which contains equal number of '1' and '0'. Return the largest num...
分类:
其他好文 时间:
2014-10-22 20:14:33
阅读次数:
209
Maximum Product SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given...
分类:
其他好文 时间:
2014-10-22 19:51:21
阅读次数:
272
Google Code Jam -- Number( 2008 Round C )
求 ( 3 + 5 ^ 0.5 ) ^ N ( 1
( 3 + 5 ^ 0.5 ) ^ N 都可以变形为 ( A + B * ( 5 ^ 0.5 ) ) 的结构
( 3 + 5 ^ 0.5 ) ^ ( N + 1 ) = ( 3 + 5 ^ 0.5 ) * ( 3...
分类:
其他好文 时间:
2014-10-22 18:21:28
阅读次数:
208
ngx_palloc.h/* * NGX_MAX_ALLOC_FROM_POOL should be (ngx_pagesize - 1), i.e. 4095 on x86. * On Windows NT it decreases a number of locked pages in a ke...
分类:
其他好文 时间:
2014-10-22 17:58:17
阅读次数:
171
题目:There is a clever algorithm for computing the Fibonacci numbers in a logarithmic number of steps.Recall the transformation of the state variables a...
分类:
其他好文 时间:
2014-10-22 17:46:46
阅读次数:
108