Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Given a 2D binary matrix filled with ...
分类:
其他好文 时间:
2016-07-15 06:08:33
阅读次数:
111
Description
Mad scientist Mike entertains himself by arranging rows of dominoes. He doesn't need dominoes, though: he uses rectangular magnets instead. Each magnet has two poles, positive (a "plus"...
分类:
其他好文 时间:
2016-07-12 12:23:03
阅读次数:
537
http://acm.hdu.edu.cn/showproblem.php?pid=2795 Billboard Problem Description At the entrance to the university, there is a huge rectangular billboard ...
分类:
其他好文 时间:
2016-07-10 21:16:29
阅读次数:
190
Largest prime factor Problem 3 Problem 3 The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? ...
分类:
其他好文 时间:
2016-07-10 01:01:20
阅读次数:
346
Problem: 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 lar ...
分类:
其他好文 时间:
2016-07-09 19:16:14
阅读次数:
184
转成String,然后按照一定的规律排序,最后再连起来,如果给的值里全是0(一个或多个),那就返回“0”,否则返回连起来的结果。 排序的规则: 如果一位一位比较,如果某个数在前面的数字比较大,那么这个数就放前面。 如果两个数不一样长,并且前面的数字都相同,那么就那短的那个,和长的那个后面多出来的半截 ...
分类:
其他好文 时间:
2016-07-09 08:12:54
阅读次数:
129
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 18942 Accepted: 6083 Description A histogram is a polygon composed of a sequence of rectang ...
分类:
其他好文 时间:
2016-07-07 22:16:39
阅读次数:
162
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t ...
分类:
其他好文 时间:
2016-07-06 17:59:20
阅读次数:
157
Problem Description
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a...
分类:
其他好文 时间:
2016-07-06 15:07:36
阅读次数:
132