码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
LeetCode: Distinct Subsequences
LeetCode: Distinct SubsequencesGiven a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new...
分类:其他好文   时间:2014-08-26 22:53:36    阅读次数:245
Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?1,2,1...
分类:其他好文   时间:2014-08-26 22:44:46    阅读次数:212
ZOJ - 1136 Multiple (同余+BFS)
Description a program that, given a natural number N between 0 and 4999 (inclusively), and M distinct decimal digits X1,X2..XM (at least one), finds the smallest strictly positive multiple of N that ...
分类:其他好文   时间:2014-08-26 21:34:06    阅读次数:342
HDU1058 Humble Numbers 【数论】
Humble Numbers Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 17407    Accepted Submission(s): 7565 Problem Description A number w...
分类:其他好文   时间:2014-08-26 21:28:16    阅读次数:296
n全排列输出和 n个数的组合(数字范围a~b)
n全排列输出:int WPermutation(int num, bool bRepeat) num表示num全排列 bRepeat标志是否产生重复元素的序列。 int Permutation(int n, int* A, int cur, bool bRepeat) { static int number = 0; if(cur == n) { number++;...
分类:其他好文   时间:2014-08-26 19:47:06    阅读次数:185
JS核心概念(精华)
null 与 undefinedJavaScript 中一共有 5 种基本类型,分别是 String、Number、Boolean、Null 和 Undefined 。前 3 种都比较好理解,后面两种就稍微复杂一点。 Null 类型只有一个值,就是 null ; Undefined 类型也只有一个值...
分类:Web程序   时间:2014-08-26 19:23:36    阅读次数:265
sigleSchool 存储过程例1
CREATE OR REPLACE PROCEDURE SINGLSCHOOL( PICIID IN VARCHAR2, SCHOOLID IN NUMBER, SCHETYPE IN number, SCHENAME OUT VARCHAR2, ISCORE OUT VARCHAR2, ISTH....
分类:其他好文   时间:2014-08-26 19:06:36    阅读次数:225
Oracle 分析函数
Oracle分析函数 --row_number():连续不重复 1234567 --rank():跳跃可重复 12333678 --dense_rank():连续可重复 12333456 row_number()?over(partition?by?deptno?order?by?sal?desc) ? over( partitio...
分类:数据库   时间:2014-08-26 17:50:06    阅读次数:323
数据库操作函数(2)
/** *更新数据函数 *@param用户提交的表单数据存入数组$array *@param操作的数据表$table *@param更新条件$where *@return影响的数据条数number */ functionupdate($array,$table,$where=NULL){ foreach($arrayas$key=>$val){ $sep=($str==null)?"":","; $str.=$sep.$k..
分类:数据库   时间:2014-08-26 17:39:17    阅读次数:306
创建存储过程和触发器
创建存储过程和触发器   1、建表 首先先建两张表(users表和number表),具体设计如下图:   2、存储过程 写一个存储过程,往users表中插入数据,创建过程如下:     代码如下: [sql] view plaincopy BEGIN      #Routine body goes here...      declare n ...
分类:其他好文   时间:2014-08-26 17:32:14    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!