create table products( productid number(10) not null, name varchar2(255), description CLOB);查询语句:select t.productid, t.name from products twhere dbms_...
分类:
数据库 时间:
2015-03-03 13:12:19
阅读次数:
181
存储过程 很久没用过存储过程,写下来当做备忘录。参考了很多别人写好的博文,借用其中写得很好的一些例子。 语句块定义:decalre -- 变量声明 var1 number(2); -- 仅声明 var2 char(2) := '11'; -- ...
分类:
数据库 时间:
2015-03-03 13:07:46
阅读次数:
186
class?Solution:
????#?@return?a?tuple,?(index1,?index2)
????def?twoSum(self,?num,?target):
????????dictionary?=?{}
????????for?index,?number?in?enumerate(num...
分类:
其他好文 时间:
2015-03-03 12:01:09
阅读次数:
127
People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are for Red, the middle 2 dig...
分类:
其他好文 时间:
2015-03-03 09:59:09
阅读次数:
150
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target.
Return the sum of the three integers. You may assume that each input would have exact...
分类:
其他好文 时间:
2015-03-03 09:54:43
阅读次数:
119
会计同事反映,在关几个外包(OSP)工单时,系统报错。错误讯息如下。检查错误讯息,发现Number of jobs failed in Delivered Quantity : 2。检查工单数据,均无异常。检查PO的数据,发现如下图,仓库人员作了Return to Receiving,共做了两笔。用...
分类:
其他好文 时间:
2015-03-03 09:42:38
阅读次数:
452
Maximum repetition substringTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7578Accepted: 2281DescriptionThe repetition number of a string is...
分类:
编程语言 时间:
2015-03-03 06:18:08
阅读次数:
327
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Note: next()...
分类:
其他好文 时间:
2015-03-03 01:12:50
阅读次数:
227
闲着无聊随便写一写
#include
#include
float mSqrt( float number ){
float result = 0x5f3759df; //出自雷神中的开根号算法的黑魔法数
while ( fabs(result * result - number) > 0.0000001 )
{
...
分类:
编程语言 时间:
2015-03-02 23:56:52
阅读次数:
282
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number con...
分类:
其他好文 时间:
2015-03-02 19:09:06
阅读次数:
193