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...
分类:
其他好文 时间:
2015-03-09 07:00:12
阅读次数:
178
TilingTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7965Accepted: 3866DescriptionIn how many ways can you tile a 2xn rectangle by 2x1 or 2x...
分类:
其他好文 时间:
2015-03-07 11:19:48
阅读次数:
143
在drawable文件夹下新建btn_shape.xml文件: 1 2 4 5 10 先解释一下上面的代码: 1.shape用于定义形状,有四种形状(矩形rectangle| 椭圆oval | 直线line | 圆形ring)。 2.solid用于设置填充形状的颜色。 3.c...
分类:
移动开发 时间:
2015-03-01 19:43:24
阅读次数:
196
矩形纹理对于二维纹理来说,除了GL_TEXTURE_2D之外,使用GL_TEXTURE_RECTANGLE就可以使用矩形纹理。矩形纹理几大特点:不能Mip,只能加载glTexImage2D的level 0纹理坐标非标准化不支持压缩纹理这种方式通常用于处理和提交图像数据的应用,比起通常的2D纹理硬件支...
分类:
其他好文 时间:
2015-02-25 18:19:45
阅读次数:
147
??
练习2.29
这种题,还有之前的那个rectangle的题目,对于变量、函数等的命名简直要让人疯掉。先来写出题目中的left-branch和right-branch吧。
(define (left-branch mobile)
(car mobile))
(define (right-branch mobile)
(cadr mobile))
...
分类:
其他好文 时间:
2015-02-22 14:37:40
阅读次数:
141
1092: BarricadeTime Limit: 1 SecMemory Limit: 32 MBSubmit: 240Solved: 71[Submit][Status][Web Board]DescriptionGBQC国一共有N个城市,标号分别为1, 2, …, N。N个城市间一共有M条单...
分类:
其他好文 时间:
2015-02-22 12:15:43
阅读次数:
184
CoreGraphics详解CoreGraphics详解
CoreGraphics绘图
绘制一个矩形
绘制一个椭圆
绘制曲线
绘制圆形
链接点来绘制为图形CoreGraphics绘图绘制一个矩形CGRect rectangle=CGRectMake(0, 0, 200, 200);
//获取当前图形
CGContextRef ctx=UIGraphicsGetCurrentCon...
分类:
其他好文 时间:
2015-02-12 18:38:38
阅读次数:
186
麻烦各位朋友帮忙顶一下增加人气,如有错误或疑问请留言纠正,谢谢
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 ...
分类:
其他好文 时间:
2015-02-10 11:25:41
阅读次数:
179
题意:坐标轴上有连续的n个底均为1,高为h[i]的矩形,求能够构成的最大矩形的面积。学习的别人的代码 @_@看底的坐标怎么找的看了好一会儿---记l[i]为矩形的底的左边的坐标,就将它一直向左扩展记r[i]为矩形的底的右边的坐标(倒着找,从n开始找,题解里面还着重强调了要倒着找,要不然就体现不出优化...
分类:
其他好文 时间:
2015-02-10 10:26:27
阅读次数:
137
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...
分类:
其他好文 时间:
2015-02-09 15:47:14
阅读次数:
174