码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
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-07-16 20:26:01    阅读次数:123
EBS Archiving and Purging: You Know you need to
A number of trends in the IT industry have contributed to the increasing size of ERP application databases and show no signs of abating. These include...
分类:其他好文   时间:2014-07-16 19:56:00    阅读次数:306
LeetCode: Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each num...
分类:其他好文   时间:2014-07-16 19:53:49    阅读次数:238
JS string 转 int
var str='1250' ; alert( Number(str) ); //得到1250 alert(parseInt(str)); //得到1250var str1='00100'; alert( Number(str1) ); //得到100 alert(parseInt(str1)...
分类:Web程序   时间:2014-07-16 19:45:21    阅读次数:151
【leetcode刷题笔记】Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.题解:思路比较简单,每条直线都可以表示为y=kx+b,所以对于任意三点,如果它们共线,那么它们中任意两点的...
分类:其他好文   时间:2014-07-14 10:02:12    阅读次数:187
Single Number II
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:其他好文   时间:2014-07-14 10:01:38    阅读次数:168
Pascal ASCII和文本的转换
用于帮助新手理解ASCII码和字符型与整型的一段小程序,转载请注明出处例如:输入 I love you打印 73 32 108 111 118 101 32 121 111 117 13 10Program TransPro (input,output);Var judge,number:integ...
分类:其他好文   时间:2014-07-14 09:55:02    阅读次数:179
oracle 存储过程
--建表create table xuesheng(id integer, xing_ming varchar2(25), yu_wen number, shu_xue number);insert into xuesheng values(1,'zhangsan',80,90);insert in...
分类:数据库   时间:2014-07-13 09:59:24    阅读次数:228
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:其他好文   时间:2014-07-12 19:06:27    阅读次数:204
System.Data.SqlClient.SqlException.Number的所有错误值列表
SqlException.Number的所有错误值列表
分类:数据库   时间:2014-07-12 14:00:20    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!