CODE: #include<cstdio> #include<cstring> #include<queue> using namespace std; bool mat[105][105]; bool root[105]; int n,m; int R; int cnt[105]; int an ...
分类:
其他好文 时间:
2017-07-15 16:47:06
阅读次数:
193
http://acm.hdu.edu.cn/showproblem.php?pid=2870 Largest Submatrix Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Tota ...
分类:
其他好文 时间:
2017-07-11 21:16:37
阅读次数:
147
Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array ...
分类:
其他好文 时间:
2017-07-09 17:17:26
阅读次数:
119
【题目链接】:click here~~ 【题目大意】: A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal wid ...
分类:
其他好文 时间:
2017-07-08 17:44:06
阅读次数:
258
leetcode 152. Maximum Product Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest product. Fo ...
分类:
其他好文 时间:
2017-07-06 16:49:23
阅读次数:
91
/** * Find the contiguous subarray within an array (containing at least one number) * which has the largest sum. For example, given the array [-2,1,-3... ...
分类:
其他好文 时间:
2017-07-04 20:25:02
阅读次数:
152
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 思路:此题的意思是给一个为0或1的矩阵,求所有为1组成的最大矩阵 ...
分类:
其他好文 时间:
2017-07-03 13:52:32
阅读次数:
105
leetcode 53. Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, gi ...
分类:
其他好文 时间:
2017-07-03 12:07:01
阅读次数:
136
题目: Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest form ...
分类:
编程语言 时间:
2017-07-01 11:49:49
阅读次数:
175
Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed n ...
分类:
其他好文 时间:
2017-06-30 15:44:10
阅读次数:
161