码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
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 n...
分类:其他好文   时间:2014-10-19 01:13:19    阅读次数:210
POJ - 2481 Cows(树状数组)
Description Farmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dimensional number line) in his field is particularly good.  ...
分类:编程语言   时间:2014-10-19 00:08:59    阅读次数:331
leetcode:Palindrome Number【Python版】
一次AC题目要求中有空间限制,因此没有采用字符串由量变向中间逐个对比的方法,而是采用计算翻转之后的数字与x是否相等的方法; 1 class Solution: 2 # @return a boolean 3 def isPalindrome(self, x): 4 o...
分类:编程语言   时间:2014-10-18 23:50:28    阅读次数:299
leetcode第18题--Letter Combinations of a Phone Number
Problem:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the ...
分类:其他好文   时间:2014-10-18 23:48:28    阅读次数:156
【Mongodb教程 第十五课 】MongoDB 限制记录
Limit() 方法要限制 MongoDB 中的记录,需要使用limit()方法。limit()方法接受一个数字型的参数,这是要显示的文档数。语法:limit()方法的基本语法如下>db.COLLECTION_NAME.find().limit(NUMBER)示例考虑集合myycol具有以下的数据{...
分类:数据库   时间:2014-10-18 22:07:47    阅读次数:225
Maximum Depth of Binary Tree | LeetCode
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-10-18 20:57:37    阅读次数:229
HDU - 4267 A Simple Problem with Integers(树状数组的逆操作)
Description Let A1, A2, ... , AN be N elements. You need to deal with two kinds of operations. One type of operation is to add a given number to a few numbers in a given interval. The other is to q...
分类:编程语言   时间:2014-10-18 16:59:56    阅读次数:321
OpenTSDB-Querying or Reading Data
Querying or Reading DataOpenTSDB offers a number of means to extract data such as CLI tools, an HTTP API and as a GnuPlot graph. Querying with OpenTSD...
分类:数据库   时间:2014-10-18 16:55:03    阅读次数:452
Union和Union All的差别
如果我们有一个表Student,包含下面字段与数据:drop table student;create table student(id int primary key,name nvarchar2(50) not null,score number not null);insert into st...
分类:其他好文   时间:2014-10-18 15:18:15    阅读次数:210
L.xml
函数名:labs功能:取长整型绝对值用法:longlabs(longn);程序例:#include#includeintmain(void){longresult;longx=-12345678L;result=labs(x);printf("number:%ldabsvalue:%ld\n",x....
分类:其他好文   时间:2014-10-18 15:14:25    阅读次数:282
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!