Note: The lower one can cross other higher recetangle. Thus height[j] <= height[left/ right -/+ 1] ...
分类:
其他好文 时间:
2017-09-04 16:01:23
阅读次数:
152
主页前端代码 右键查看代码 生成验证码的web窗体 不需要前台代码 右键查看代码 效果 ...
分类:
其他好文 时间:
2017-09-03 22:04:56
阅读次数:
156
shp.mask = new egret.Rectangle(20,20,30,50); 注意如果rec发生变化,需要重要将rec赋值给shp.mask sprite.mask = null 显示对象作为遮罩,无需像矩形遮罩那样重复赋值 mask,但是 mask 必须是显示列表里元素。 ...
分类:
其他好文 时间:
2017-09-02 22:34:20
阅读次数:
206
Given a 2D immutable array, Write an efficient program to support any given sub-rectangle sum query in this 2D matrix. A simple solution is to add eac ...
分类:
其他好文 时间:
2017-08-22 13:18:24
阅读次数:
145
C - Make a Rectangle Time limit : 2sec / Memory limit : 256MB Score : 300 points Problem Statement We have N sticks with negligible thickness. The len ...
分类:
其他好文 时间:
2017-08-21 14:55:43
阅读次数:
236
Given a 2D binary matrix filled with 0's and 1's, find the largest square which diagonal is all 1 and others is 0. Only consider the main diagonal sit ...
分类:
其他好文 时间:
2017-08-19 14:17:25
阅读次数:
209
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given the following mat ...
分类:
其他好文 时间:
2017-08-19 11:14:36
阅读次数:
150
一、使用Pen画笔 Pen的主要属性有: Color(颜色),DashCap(短划线终点形状),DashStyle(虚线样式),EndCap(线尾形状), StartCap(线头形状),Width(粗细)等. 我们可以用Pen 来画虚线,带箭头的直线等。 运行后的效果: 二、Bush的使用 画刷的作 ...
一、引言 经过这段时间对设计模式的学习,自己的感触还是很多的,因为我现在在写代码的时候,经常会想想这里能不能用什么设计模式来进行重构。所以,学完设计模式之后,感觉它会慢慢地影响到你写代码的思维方式。这里对设计模式做一个总结,一来可以对所有设计模式进行一个梳理,二来可以做一个索引来帮助大家收藏。 PS ...
分类:
其他好文 时间:
2017-08-15 21:18:54
阅读次数:
220
Largest Rectangle in a Histogram HDU - 1506 Largest Rectangle in a Histogram A histogram is a polygon composed of a sequence of rectangles aligned at ...
分类:
其他好文 时间:
2017-08-15 11:18:53
阅读次数:
153