42. Trapping Rain Water Problem's Link ---------------------------------------------------------------------------- Mean: 在坐标上给你一些竖直放置的条形积木,问你这个积木能够容纳
分类:
移动开发 时间:
2016-03-06 12:54:30
阅读次数:
196
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
分类:
移动开发 时间:
2016-03-06 01:15:07
阅读次数:
274
<?php /** * 可以灵活配置使用的采集器 * 作者:Rain * 创建时间:2015-02-03 15:17:30 * 版本信息:V1.0 */ /////////////////////////////////////////////////////////////////////////
分类:
Web程序 时间:
2016-03-03 19:31:13
阅读次数:
256
shutdown immediate 经常关库时hang住,在alert中有 License high water mark = 4All dispatchers and shared servers shutdown 多等一会会出现SHUTDOWN: Active processes preven
分类:
其他好文 时间:
2016-02-26 23:39:45
阅读次数:
1016
一开始暴力解决,时间没通过 1 class Solution { 2 public: 3 int maxArea(vector<int>& height) { 4 int maxArea=0,eachArea=0; 5 if(height.size()<2) return maxArea; 6 fo
分类:
其他好文 时间:
2016-02-24 22:41:01
阅读次数:
241
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 adjacen
分类:
其他好文 时间:
2016-02-23 11:17:07
阅读次数:
211
原题链接在这里:https://leetcode.com/problems/number-of-islands-ii/ A 2d grid map of m rows and n columns is initially filled with water. We may perform an ad
分类:
其他好文 时间:
2016-02-21 10:13:17
阅读次数:
239
1.迭代器 names = iter(["alex","jack","rain"]) #声明列表的一个迭代器 names.__next__() #迭代 2.生成器,使用yield后,函数变成一个generator,调用函数返回一个iterable对象 def cash_monkey(amount):
分类:
编程语言 时间:
2016-02-17 22:18:12
阅读次数:
194
A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at position (row, col)
分类:
其他好文 时间:
2016-02-15 14:55:43
阅读次数:
532
Ajax: 1、load()方法: //无参数传递,则是get方式: $("#resText").load("test.php" , function(){ }); //有参数传递,则是post方式 $("#resText").load("test.php" , {name:"rain" , age
分类:
Web程序 时间:
2016-02-09 17:24:41
阅读次数:
317