Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?...
分类:
其他好文 时间:
2014-08-19 18:12:55
阅读次数:
279
Rounders
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7605
Accepted: 4931
Description
For a given number, if greater than ten, round it to the nearest...
分类:
其他好文 时间:
2014-08-19 16:38:54
阅读次数:
185
XML文档和HTML语言非常相似,其中可以自定义标签.XML文档用于描述数据的性质和结构.借助于HTML来显示数据.XML文档又像是数据库中的一个表,具有存储数据信息的功能.XML非常简单,下面就来逐步了解XML基本语法. 1.文档的声明 version属性表示XML文档的版本,尽管目前只...
分类:
其他好文 时间:
2014-08-19 14:10:34
阅读次数:
214
Description
A palindrome is a word, number, or phrase that reads the same forwards as backwards. For example, the name "anna" is a palindrome. Numbers can also be palindromes (e.g.
151 or 753357)....
分类:
其他好文 时间:
2014-08-19 12:57:34
阅读次数:
189
#ifndef __CMSIS_OS_H__#define __CMSIS_OS_H__#include #include #include "RTOS.h"// API version (main [31:16] .sub [15:0])#define osCMSIS ...
分类:
其他好文 时间:
2014-08-19 12:26:14
阅读次数:
561
In a galaxy far far awaythere is an ancient game played among the planets. The specialty of the game isthat there is no limitation on the number of players in each team, as long asthere is a captain i...
分类:
其他好文 时间:
2014-08-19 11:03:34
阅读次数:
261
#include
#include
#include
using namespace std;
const int N = 101000;
int a[N];
struct Node
{
int l,r,num;
};
Node tree[4*N];
void build(int l,int r,int o)
{
tree[o].l=l,tree[o].r=r;
t...
分类:
其他好文 时间:
2014-08-19 11:03:14
阅读次数:
222
在做SQL调优的时候,有的时候需要加一个索引试试能不能见效,如果此时这张表非常大,建索引将会非常之麻烦,这种场景虚拟索引就该登场了。下面来做个试验:
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g...
分类:
数据库 时间:
2014-08-19 10:57:14
阅读次数:
331
异常处理
一、预定义异常:
Dup_val_on_index:试图向唯一索引列插入重复值,相当于建立了一个唯一索引 然后再向这个索引的列中插入一条重复的数据就会异常。
Invalid_cursors:试图进行非法的游标操作
Invalid_number : 试图将字符串转换为数字
no_data_found : select into 语句没有返回任何记录
Too_many_rows ...
分类:
其他好文 时间:
2014-08-19 09:27:03
阅读次数:
210
LCM (Least Common Multiple) of a set of integers is defined as the minimum number, which is a multiple of all integers of that set. It is interesting to note that any positive integer can be expressed...
分类:
其他好文 时间:
2014-08-18 23:38:13
阅读次数:
275