import java.util.Scanner; class Rectangular { private static int x, y; private static int countP = 0; public Rectangular(int xx, int yy) { x=xx; y=yy;... ...
分类:
编程语言 时间:
2017-04-14 16:13:00
阅读次数:
182
【题目描述】FindK-thlargestelementinanarray.Notice:Youcanswapelementsinthearray在数组中找到第k大的元素注意:你可以交换数组中的元素的位置【题目链接】http://www.lintcode.com/en/problem/kth-largest-element/【题目解析】sort的方法:一开始看到这道题肯定觉得很简单..
分类:
其他好文 时间:
2017-04-13 15:42:51
阅读次数:
114
Find K-th largest element in an array. and N is much larger than k. Notice You can swap elements in the array Find K-th largest element in an array. a ...
分类:
其他好文 时间:
2017-04-13 08:55:25
阅读次数:
168
Red and Black Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 34862 Accepted: 18856 Description There is a rectangular room, covered with s ...
分类:
其他好文 时间:
2017-04-12 03:34:47
阅读次数:
241
There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different width. Yo ...
分类:
其他好文 时间:
2017-04-12 01:57:07
阅读次数:
193
【题目链接】 http://poj.org/problem?id=2559 【题目大意】 给出一些宽度为1的长方形下段对其后横向排列得到的图形,现在给你他们的高度, 求里面包含的最大长方形的面积 【题解】 我们枚举每个位置的最大高度全部被保留时得到的最优解,那么答案一定被包含在其中, 那么题目转化为 ...
分类:
其他好文 时间:
2017-04-11 01:09:50
阅读次数:
97
53. Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the a ...
分类:
其他好文 时间:
2017-04-09 22:05:30
阅读次数:
162
There is a brick wall in front of you. The wall is rectangular and has several rows of bricks.The bricks have the same height but different width. You ...
分类:
其他好文 时间:
2017-04-09 14:58:21
阅读次数:
186
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of ...
分类:
其他好文 时间:
2017-04-09 13:04:39
阅读次数:
182
You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found ...
分类:
其他好文 时间:
2017-04-08 15:08:24
阅读次数:
204