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
Problem Description
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had originally and how long they were origin...
分类:
其他好文 时间:
2015-03-20 11:05:11
阅读次数:
129
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5,
and A is now [1,1,2,2,...
分类:
其他好文 时间:
2015-03-20 11:00:03
阅读次数:
92
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
vector plusOne(vector &d...
分类:
其他好文 时间:
2015-03-20 10:58:09
阅读次数:
136
At first beginning, I was trying to use hash set to record the characters. But I found that was wrong.Because if there are couple same chars, when you...
分类:
其他好文 时间:
2015-03-20 08:06:07
阅读次数:
164
# -*- 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
题目链接:Plus One
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
这道题的要求是给定...
分类:
其他好文 时间:
2015-03-19 21:59:35
阅读次数:
117
OpenCV is the most popular and advanced code library for Computer Vision related applications today, spanning from many very basic tasks (capture and pre-processing of image data) to high-level algorit...
分类:
系统相关 时间:
2015-03-19 16:26:16
阅读次数:
303
简介: MSB是Most Significant Bit的缩写,最高有效位。在二进制数中,MSB是最高加权位。与十进制数字中最左边的一位类似。通常,MSB位于二进制数的最左侧,LSB位于二进制数的最右侧。 LSB(Least Significant Bit),意为最低有效位;MSB(Most ...
分类:
其他好文 时间:
2015-03-19 14:36:10
阅读次数:
112
The minimum height controls the volumns. So let two runner at two ends start to scan the array. 1 class Solution { 2 public: 3 int maxArea(vector ...
分类:
其他好文 时间:
2015-03-19 06:21:12
阅读次数:
147