码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
[cc150] 硬币问题
Given an infinite number of quarters (25 cents), dimes (10 cents), nickels (5 cents) and pennies (1 cent), find how many ways to represent n cents.思路:...
分类:其他好文   时间:2014-06-09 20:04:56    阅读次数:238
[leetcode]Combination Sum @ Python
原题地址:https://oj.leetcode.com/problems/combination-sum/题意:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in...
分类:编程语言   时间:2014-06-09 17:50:09    阅读次数:333
sql server dateadd()
定义和用法DATEADD() 函数在日期中添加或减去指定的时间间隔。语法DATEADD(datepart,number,date)date参数是合法的日期表达式。number是您希望添加的间隔数;对于未来的时间,此数是正数,对于过去的时间,此数是负数。datepart参数可以是下列的值:datepa...
分类:数据库   时间:2014-06-09 15:42:33    阅读次数:316
leetcode - Single Number
今天开始刷leetcode上的题,争取校招前刷过一遍,从AC率最高的题目开始刷,不废话了,看题题目:Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single ...
分类:其他好文   时间:2014-06-09 12:57:45    阅读次数:260
c语言基础编程
作业:1、二进制,八进制,十进制之间的相互转换2、测试转义字符3、测试强制类型转换4、测试赋值运算符 = += -= *= /= %= >= ^= |= &=number += 2;5、测试不同类型数字的运算(+ - * /)结果6、从键盘输入一个实数,求其绝对值。7、从键盘输入三个数,按升序输出。...
分类:编程语言   时间:2014-06-09 00:49:30    阅读次数:339
[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.思路:(1)点1到点n (a)以点1为参考点,求“点1”与“点2到点n”各个斜率下点的个数; (求出直...
分类:其他好文   时间:2014-06-08 22:30:56    阅读次数:266
[LeetCode OJ] 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.
//定义二维平面上的点struct Point{ int x; int y; Point(int a=0, int b=0):x(a),y(b){}};bool operator==(const Point& left, const Point& right){ return...
分类:其他好文   时间:2014-06-08 22:26:17    阅读次数:357
湘潭 A simple problem
A simple problemAccepted : 30Submit : 303Time Limit : 15000 MSMemory Limit : 655360 KBProblem DescriptionThere is a simple problem. Given a number N. ...
分类:其他好文   时间:2014-06-08 21:14:04    阅读次数:226
SQL Server数据库ROW_NUMBER()函数使用
下面以几个实例来说明ROW_NUMBER()函数的使用。 实例如下:1.使用row_number()函数进行编号,如selectemail,customerID,ROW_NUMBER()over(orderbypsd)asrowsfromQT_Customer原理:先按psd进行排序,排序完后,给每...
分类:数据库   时间:2014-06-08 19:12:56    阅读次数:287
projecteuler---->problem=23----Non-abundant sums
A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means th...
分类:其他好文   时间:2014-06-08 04:05:14    阅读次数:315
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!