码迷,mamicode.com
首页 >  
搜索关键字:number sequence    ( 32515个结果
sql serve 创建序列
Oracle中有sequence的功能,SQL Server类似的功能使用Identity列实现,但是有很大的局限性。在2012中,微软终于增加了sequence 对象,功能和性能都有了很大的提高。sql server 2012 序列配置属性1. 查询序列的下一个值select next value...
分类:数据库   时间:2014-05-08 19:35:44    阅读次数:446
sdut 2610:Boring Counting(第四届山东省省赛原题,划分树 + 二分)
Boring CountingTime Limit: 3000ms Memory limit: 65536K有疑问?点这里^_^题目描述 In this problem you are given a number sequence P consisting of N integer and Pi....
分类:其他好文   时间:2014-05-08 19:17:31    阅读次数:473
the smallest positive number
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive number that is...
分类:其他好文   时间:2014-05-08 14:36:50    阅读次数:248
hdu 3006 The Number of set(思维+壮压DP)
The Number of set Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1056    Accepted Submission(s): 655 Problem Description Given you n s...
分类:其他好文   时间:2014-05-07 21:35:32    阅读次数:381
Leetcode:Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 解题想法: 其实判断一个直线上最好的方法是判断斜率。如果在同一直线上,那么直线上一点与其他点的斜率相...
分类:其他好文   时间:2014-05-07 21:13:02    阅读次数:323
用递归法计算斐波那契数列的第n项
斐波纳契数列(Fibonacci Sequence)又称黄金分割数列,指的是这样一个数列:1、1、2、3、5、8、13、21、……在数学上,斐波纳契数列以如下被以递归的方法定义:F0=0,F1=1,Fn=F(n-1)+F(n-2)(n>=2,n∈N*)在现代物理、准晶体结构、化学等领域,斐波纳契数列...
分类:其他好文   时间:2014-05-07 20:47:16    阅读次数:323
LeetCode: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,...
分类:其他好文   时间:2014-05-07 16:42:42    阅读次数:287
shell 进制转换
包括:i.任意进制转化为十进制((num=base#number)) 【base和number必须一致,是同一种进制】ii.十进制转化为任意进制`echo "obase=进制;值"|bc` 和`echo "值 进制 o p"|bc` 【这里的值代表十进制数字】iii.任意进制互转;有了i和ii就可以...
分类:其他好文   时间:2014-05-07 16:40:14    阅读次数:272
strtok函数的使用与实现
一个用来分割字符串的函数: strtok char * strtok ( char * str, const char * delimiters ); Split string into tokens A sequence of calls to this function split str into tokens, which are sequences of co...
分类:其他好文   时间:2014-05-07 16:18:12    阅读次数:273
POJ1141 Brackets Sequence (dp动态规划,递归)
本文出自:http://blog.csdn.net/svitter 原题:http://poj.org/problem?id=1141 题意:输出添加括号最少,并且使其匹配的串。 题解: dp [ i ] [ j ] 表示添加括号的个数, pos[ i][ j ] 表示i, j中哪个位置分开,使得两部分分别匹配。 初始值置dp [ i ] [ i ]  = 1; 如果只有一个括号,...
分类:其他好文   时间:2014-05-07 15:17:21    阅读次数:367
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!