码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
训练赛(1---5)A
一、题目DescriptionTo get to the treasure,Jonesmust complete one more task. He comes across a table, where there are a number of wooden planks lying along...
分类:其他好文   时间:2014-08-11 17:34:22    阅读次数:228
读书笔记——《You Don't Know JS》
第一部:《You don't know JS: this & Object prototype》第三章 Object对象常量var myObject = {};Object.defineProperty( myObject, "FAVORITE_NUMBER", { value: 42, writa...
分类:Web程序   时间:2014-08-11 14:32:12    阅读次数:243
ab做压力测试
ab是apache 自带的一个压力测试的小工具,可用于接口简单的压力测试。以下是AB的简要介绍格式:ab [options] [http://]hostname[:port]/path参数说明:-n requests Number of requests to perform//在测试会话中所执行的...
分类:其他好文   时间:2014-08-11 10:02:41    阅读次数:214
pat解题报告【1082】
1082. Read Number in Chinese (25) 时间限制   400 ms 内存限制   32000 kB 代码长度限制   16000 B 判题程序     Standard     作者     CHEN, Yue Given an integer with no more than ...
分类:其他好文   时间:2014-08-11 00:23:11    阅读次数:256
HDU2852_KiKi's K-Number(线段树/单点更新)
解题报告 题目传送门 题意: 意思很好理解。 思路: 每次操作是100000次,数据大小100000,又是多组输入。普通模拟肯定不行。 线段树结点记录区间里存在数字的个数,加点删点操作就让该点个数+1,判断x存在就查询[1,x]区间的个数和[1,x-1]的个数。 求x之后第k大的数就先确定小于x的个数t,第t+k小的数就是要求的。 #include #include #incl...
分类:其他好文   时间:2014-08-10 21:34:50    阅读次数:303
[leetcode]Maximum Subarray
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-10 21:18:20    阅读次数:232
创建分区表
列********************************************************************************创建分区表CREATETABLEccc1(idnumber(8),name varchar2(30),sales_datedate)PARTITIONBYRANGE(sales_date)(PARTITIONp1VALUESLESSTHAN( TO_DATE(‘01-JAN-1999‘,‘DD-MON-YYYY‘))tablespacez..
分类:其他好文   时间:2014-08-10 18:53:01    阅读次数:304
ZOJ2599:Graduated Lexicographical Ordering(非常经典的数位DP)
Consider integer numbers from 1 to n. Let us call the sum of digits of an integer number its weight. Denote the weight of the number x as w(x). Now let us order the numbers using so called graduated ...
分类:其他好文   时间:2014-08-10 18:47:20    阅读次数:406
oracle中利用trigger,sequence自动生成ID
http://zhanghong.iteye.com/blog/8659371. 首先创建数据库表SQL> create table customer(2 id number(8) not null primary key,3 name varchar2(20),4 age number(3),5 ...
分类:数据库   时间:2014-08-10 18:01:30    阅读次数:251
UVA 11651 - Krypton Number System(DP+矩阵快速幂)
UVA 11651 - Krypton Number System 题目链接 题意:给一个进制base,一个分数score求该进制下,有多少数满足一下条件: 1、没有连续数字 2、没有前导零 3、分数为score,分数的计算方式为相邻数字的平方差的和 思路:先从dp入手,dp[i][j]表示组成i,最后一个数字为j的种数,然后进行状态转移,推出前面一步能构成的状态,也就是到...
分类:其他好文   时间:2014-08-10 13:06:10    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!