Simple StringProblem's Link: http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1550Mean:略。analyse:水题。Time complexity: O(n)Source code:// Memory Time...
分类:
其他好文 时间:
2015-03-29 23:18:15
阅读次数:
222
WeLongDaWoodmanufacturehardwoodcore3timehotpressfilmfacedplywood.Thecoreofthiskindfilmfacedplywoodismadefrom13layersfor18mmthicknessmarineplywood.filmfacedplywood,Brownphenolicfilm,WBPglue,hardwoodcore1220x2440x18mm--------US瑞342/CBMFOBQingdaoport,ChinaLoa..
分类:
其他好文 时间:
2015-03-29 18:13:08
阅读次数:
160
代码:#include#includeusing namespace std;int maxArea(vector &height){ int L = height.size(); int i = 0; int j = L - 1; int max = 0; int l...
分类:
其他好文 时间:
2015-03-28 20:22:35
阅读次数:
132
题目链接:container-with-most-water
/**
*
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai).
n vertical lines are drawn such that the two endpoi...
分类:
其他好文 时间:
2015-03-28 08:59:02
阅读次数:
147
题目链接:trapping-rain-water
import java.util.Stack;
/**
*
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...
分类:
移动开发 时间:
2015-03-27 22:22:39
阅读次数:
158
https://leetcode.com/problems/trapping-rain-water/Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute ...
分类:
移动开发 时间:
2015-03-20 23:31:14
阅读次数:
204
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'42: Trapping Rain Waterhttps://oj.leetcode.com/problems/trapping-rain-water/Given n non-ne...
分类:
移动开发 时间:
2015-03-20 01:16:24
阅读次数:
184
题意:在坐标轴的x轴上的0,1,2,3,4、、、、n处有n+1块木板,长度不一,任两块加上x轴即可构成一个容器,其装水面积为两板的间距与较短板长之积,以vector容器给出一系列值,分别代表在0,1,2,3,4、、、vector.size()-1共size个短板,是连续的,不排除有板长为0的可能性,...
分类:
其他好文 时间:
2015-03-18 23:01:52
阅读次数:
276
problem:
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai).
n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0)...
分类:
其他好文 时间:
2015-03-18 15:53:14
阅读次数:
110
题意:Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in the...
分类:
其他好文 时间:
2015-03-12 17:01:39
阅读次数:
128