码迷,mamicode.com
首页 >  
搜索关键字:largest rectangular    ( 1806个结果
leetcode--Maximal Rectangle
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.public class Solution { public...
分类:其他好文   时间:2014-07-06 13:50:22    阅读次数:153
POJ 1101 The Game(BFS+判方向)
The Game Description One morning, you wake up and think: "I am such a good programmer. Why not make some money?'' So you decide to write a computer game. The game takes place on a rectangular...
分类:其他好文   时间:2014-07-06 09:02:34    阅读次数:287
[leetcode] Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist...
分类:其他好文   时间:2014-07-03 11:09:35    阅读次数:185
uva11324 The Largest Clique --- 强连通+dp
首先tarjan缩点,重新建图后,每个点的权值就是该点包含点的个数。 然后从入度为0的点开始记忆化搜索,dp[i]表示以i为根最多包含多少点。 #include #include #include #include #include #include #include #include #include #define inf 0x3f3f3f3f #define e...
分类:其他好文   时间:2014-07-02 08:37:48    阅读次数:211
UVA 784 Maze Exploration
题目如下: Maze Exploration  A maze of rectangular rooms is represented on a twodimensional grid as illustrated in figure 1a. Each point of thegrid is represented by a character. ...
分类:其他好文   时间:2014-07-01 06:57:08    阅读次数:231
【LeetCode】 Maximum Subarray
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,4,?1,2,1...
分类:其他好文   时间:2014-07-01 00:23:01    阅读次数:248
SYSU暑假热身赛D
D - Rope in the Labyrinth Time Limit:500MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Practice URAL 1145 Description A labyrinth with rectangular form...
分类:其他好文   时间:2014-06-30 08:14:14    阅读次数:277
Structure and Interpretation of Computer Programs-Exercise 1.3
【问题】 Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers. 定义一个过程,它以三个数为参数,返回其中较大的两个数的平方和。 【普通版】 (define (sum-square-largest x y ...
分类:其他好文   时间:2014-06-30 00:19:52    阅读次数:270
Leetcode Largest Rectangle in Histogram
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:其他好文   时间:2014-06-27 23:01:16    阅读次数:259
UVA - 11324 The Largest Clique 强连通缩点+记忆化dp
题目要求一个最大的弱联通图。 首先对于原图进行强连通缩点,得到新图,这个新图呈链状,类似树结构。 对新图进行记忆化dp,求一条权值最长的链,每个点的权值就是当前强连通分量点的个数。 /* Tarjan算法求有向图的强连通分量set记录了强连通分量 Col记录了强连通分量的个数。 */ #include #include #include #include #include usin...
分类:其他好文   时间:2014-06-27 10:12:12    阅读次数:275
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!