码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
Number of Islands
今天出来的新题,已经有大神出结果了,刚开始看还没看懂,就是dfs + 二维渲染 图http://www.cnblogs.com/easonliu/p/4402077.htmlpublic class Solution { public int numIslands(char[][] grid)...
分类:其他好文   时间:2015-04-09 06:07:07    阅读次数:139
Number of Islands——LeetCode
Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent ...
分类:其他好文   时间:2015-04-09 00:59:17    阅读次数:146
Python多线程启动http.server
OS: Windows 8.1 with update关键字:Python3.4, http.server, Thread例子代码如下:import osfrom threading import Threadimport timeimport webbrowserport_number = "80...
分类:编程语言   时间:2015-04-09 00:52:47    阅读次数:282
Java算法 -- 顺序表
顺序表结构定义:就是按照顺序存储方式存储的线性表 1 1.定义一个顺序表的基本数据: 2 3 static final int MAXLEN = 100; 4 5 Class Student{ 6 private String number; //学生学号 7 pri...
分类:编程语言   时间:2015-04-09 00:34:12    阅读次数:243
SQL日期相关的操作
DECLARE @dt datetimeSET @dt=GETDATE() DECLARE @number intSET @number=3 --1.指定日期该年的第一天或最后一天--A. 年的第一天SELECT CONVERT(char(5),@dt,120)+'1-1' --B. 年的最后一天S...
分类:数据库   时间:2015-04-08 23:05:18    阅读次数:330
sql查询语句
select count(virtualacc) into v_count from T_ATMMONITOR WHERE virtualacc = v_number;用于存储过程中,是把count(virtualacc)统计的数量值赋予变量v_count,在后续的存储过程中调用v_count变量。...
分类:数据库   时间:2015-04-08 23:03:46    阅读次数:219
leetcode_Number of 1 Bits
思路: java中如何表示无符号整数呢,很伤,那就用C写吧。二进制与运算和二进制循环移位搞定...
分类:其他好文   时间:2015-04-08 21:39:43    阅读次数:139
Leetcode1 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 tw...
分类:其他好文   时间:2015-04-08 21:19:04    阅读次数:112
leetcode------3Sum Closest
标题:3Sum Closest通过率:27.0%难度:中等Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum...
分类:其他好文   时间:2015-04-08 21:12:13    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!