码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
N-Queens II
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.思路:穷举所有合法的摆法。 1 class Solut...
分类:其他好文   时间:2014-08-27 10:54:07    阅读次数:206
navicat查看mysql数据表记录数不断变化
在使用navicat进行数据库管理的时候,在查看表对象的时候会发现,每次刷新,数据表的记录数不断变化,尤其是大表。对于100万的数据经常会显示九十几万,当然通过count(*)出来的数据是正确的。非常疑惑,查了一下资料,原来和存储引擎有关。官方说明:The number of rows. Some ...
分类:数据库   时间:2014-08-27 09:17:47    阅读次数:330
【Leet Code】Palindrome Number
Palindrome Number  Total Accepted: 19369 Total Submissions: 66673My Submissions Determine whether an integer is a palindrome. Do this without extra space. 判断一个数整数是不是回文?例如121,122...
分类:其他好文   时间:2014-08-27 01:40:27    阅读次数:180
[LeetCode] Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then le...
分类:其他好文   时间:2014-08-27 00:20:16    阅读次数:232
LeetCode: Distinct Subsequences
LeetCode: Distinct SubsequencesGiven a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new...
分类:其他好文   时间:2014-08-26 22:53:36    阅读次数:245
Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?1,2,1...
分类:其他好文   时间:2014-08-26 22:44:46    阅读次数:212
ZOJ - 1136 Multiple (同余+BFS)
Description a program that, given a natural number N between 0 and 4999 (inclusively), and M distinct decimal digits X1,X2..XM (at least one), finds the smallest strictly positive multiple of N that ...
分类:其他好文   时间:2014-08-26 21:34:06    阅读次数:342
HDU1058 Humble Numbers 【数论】
Humble Numbers Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 17407    Accepted Submission(s): 7565 Problem Description A number w...
分类:其他好文   时间:2014-08-26 21:28:16    阅读次数:296
n全排列输出和 n个数的组合(数字范围a~b)
n全排列输出:int WPermutation(int num, bool bRepeat) num表示num全排列 bRepeat标志是否产生重复元素的序列。 int Permutation(int n, int* A, int cur, bool bRepeat) { static int number = 0; if(cur == n) { number++;...
分类:其他好文   时间:2014-08-26 19:47:06    阅读次数:185
JS核心概念(精华)
null 与 undefinedJavaScript 中一共有 5 种基本类型,分别是 String、Number、Boolean、Null 和 Undefined 。前 3 种都比较好理解,后面两种就稍微复杂一点。 Null 类型只有一个值,就是 null ; Undefined 类型也只有一个值...
分类:Web程序   时间:2014-08-26 19:23:36    阅读次数:265
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!