码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
sicily 1176. Two Ends (Top-down 动态规划+记忆化搜索 v.s. Bottom-up 动态规划)
DescriptionIn the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Play...
分类:其他好文   时间:2014-09-27 00:10:38    阅读次数:444
poj1007【求逆序数】
DescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For insta...
分类:其他好文   时间:2014-09-26 22:07:08    阅读次数:194
LeetCode:Max Points on a line
题目:Max Points on a lineGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.这道题需要稍微转变一下思路,用斜率来实现,试想找在同一条...
分类:其他好文   时间:2014-09-26 21:42:28    阅读次数:147
POJ 3300 Tour de France(简单题)
【题意简述】:由The drive ratio -- the ratio of the angular velocity of the pedals to that of the wheels -- is n : m where n is the number of teeth on the rear sprocket and m is the number of teeth on the f...
分类:其他好文   时间:2014-09-26 21:24:18    阅读次数:209
json格式字符串用jquery.parseJSON()出现的问题 Uncaught SyntaxError: Unexpected token ' Uncaught SyntaxError: Unexpected number (index)
Unexpected number(index)的错误用的json字符串如var jsonStr = "{1:'北京note备注信息',2:'上海note备注信息',3:'广东note备注信息',4:'深圳note备注信息4',5:'天津note备注信息5',6:'湖北note备注信息6',7:'重...
分类:Web程序   时间:2014-09-26 19:36:58    阅读次数:455
[LeetCode] Maximum Product Subarray的两种思路
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the larges...
分类:其他好文   时间:2014-09-26 15:03:38    阅读次数:359
Javascript中数据类型转换那些事
在js中,总的来说数据类型分为两大类,一类是原始值类型的,一类是引用类型的。原始值类型的包括:字符串(String) 、数字(Number) 、布尔值(Boolean) 以及两个特殊的值 null 和 undefined 。引用类型的主要是指对...
分类:编程语言   时间:2014-09-26 14:55:09    阅读次数:184
Oracle数据库经验系列---第一篇
1)改变oracle 11g r2 中sql developer中查询出来的结果的日期显示类型,即会话日期类型的设置: alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS'; oracle加字段: alter table operator_daily add(op_type number(11)); 2)函数de...
分类:数据库   时间:2014-09-26 13:05:28    阅读次数:209
how to find out the switch port by IP address
Subject: HowtofindouttheportnumberbyIPaddressSolution:Incore switch,pingtheIPaddress,Ex:telnet@GemHF-Fab-Core#ping10.20.12.111Sending1,16-byteICMPEchoto10.20.12.111,timeout 5000msec,TTL64TypeControl-ctoabortReplyfrom10.20.12.111:bytes=16time=1msTTL=128Succe..
分类:其他好文   时间:2014-09-26 11:37:59    阅读次数:218
14_Oracle_Admin_联机重做日志文件的增删改
一、增加联机重做日志的组和组成员1.增加组SQL>descv$logfile;NameNull?Type --------------------------------------------------------------------- GROUP#NUMBER STATUSVARCHAR2(7) TYPEVARCHAR2(7) MEMBERVARCHAR2(513) IS_RECOVERY_DEST_FILEVARCHAR2(3)SQL>colmem..
分类:数据库   时间:2014-09-26 08:31:59    阅读次数:432
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!