DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular...
分类:
其他好文 时间:
2015-07-30 10:56:07
阅读次数:
107
【053-Maximum Subarray(最大子数组和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the ar...
分类:
编程语言 时间:
2015-07-29 07:55:12
阅读次数:
131
Kth Largest Element in an ArrayTotal Accepted:13165Total Submissions:48240My SubmissionsQuestionSolutionFind thekth largest element in an unsorted arr...
分类:
编程语言 时间:
2015-07-28 17:45:12
阅读次数:
126
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matrix:1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0
Return ...
分类:
其他好文 时间:
2015-07-27 19:12:53
阅读次数:
106
Again Prime? No time.The problem statement is very easy. Given a number n you have to determine the largest power of m,not necessarily prime...
分类:
其他好文 时间:
2015-07-27 10:40:18
阅读次数:
92
题目描述 There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile,...
分类:
其他好文 时间:
2015-07-26 20:47:59
阅读次数:
188
原题:DescriptionA robot has to patrol around a rectangular area which is in a form ofmxngrid (mrows andncolumns). The rows are labeled from 1 tom. The c...
分类:
其他好文 时间:
2015-07-26 20:36:03
阅读次数:
113
Corn FieldsTime Limit:2000MSMemory Limit:65536KTotal Submissions:9623Accepted:5092DescriptionFarmer John has purchased a lush new rectangular pasture ...
分类:
其他好文 时间:
2015-07-26 14:07:01
阅读次数:
171
https://leetcode.com/problems/kth-largest-element-in-an-array/ Find the kth largest element in an unsorted array. Note that it is the kth largest elem...
分类:
其他好文 时间:
2015-07-25 18:15:37
阅读次数:
100
//用栈实现
class Solution {
public:
int largestRectangleArea(vector& height) {
stack index;
vector high=height;
int result=0;
int temp;
high.push_back(0);
for(int i=0;...
分类:
其他好文 时间:
2015-07-25 07:10:35
阅读次数:
98