problem:
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 histogram.
Above is a histo...
分类:
其他好文 时间:
2015-04-14 16:45:49
阅读次数:
88
problem:
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
Hide Tags
Array Hash
Table Stack Dynamic
Programmin...
分类:
其他好文 时间:
2015-04-14 16:40:04
阅读次数:
110
一、添加新的一行0.取出最后一个子控件UIView *last = [self.view.subviews lastObject];// 新增这行的Y = 最后一个子控件Y + 最后一个子控件的高度CGFloat rowY = last.frame.origin.y + lat.frame.size...
分类:
其他好文 时间:
2015-04-14 16:20:22
阅读次数:
137
在ECMAScript3中规定,在一个网页中,只有一个全局作用域而言,使用instanceof操作符就可以了这也是我们常规的想法if(value instanceof Array){ //对数组进行操作}但是当网页中包含多个框架时(一个页面中含有多个frame),实际上就存在多个不同的全局执行...
分类:
编程语言 时间:
2015-04-14 16:10:18
阅读次数:
153
集合类说明及区别 Collection ├List │├LinkedList │├ArrayList │└Vector │ └Stack └Set Map ├Hashtable ├HashMap └WeakHashMap Collection接口 Collection是最基本的集合接口,一个Collection代...
分类:
编程语言 时间:
2015-04-14 14:52:03
阅读次数:
203
项目中用到的fcntl.hfcntl : file control : 文件控制errno.h : 提供了一种错误报告机制malloc.h : 动态分配内存sys/mman.h : 内存管理声明linux/videodev2.h : 视频驱动头文件linnux/fb.h :frame buffer ...
分类:
系统相关 时间:
2015-04-14 14:35:52
阅读次数:
199
local options ={ frames = { --frame 1 { x = 0, y = 0, width = 232, height = 276 ...
分类:
其他好文 时间:
2015-04-14 14:19:28
阅读次数:
147
for (int i=0; iself.imagearray count];
i++) {
UIButton *button = [UIButton
buttonWithType: UIButtonTypeRoundedRect];
button.frame =
CGRectMake...
分类:
移动开发 时间:
2015-04-14 13:01:30
阅读次数:
186
上午开工程出现, "Interface builder was unable to determine the type of xxx.xib" 错误svn上报冲突(conflict),xib文件爆红郁闷百度 google stack 没有找到答案于是只能,喝口奶自己研究xib的真身是xml文件,于...
分类:
移动开发 时间:
2015-04-14 12:52:49
阅读次数:
156
这篇blog试图说明这么一个问题,当一个c函数被调用时,一个栈帧(stack frame)是如何被建立,又如何被消除的。这些细节跟操作系统平台及编译器的实现有关,下面的描述是针对运行在Linux的gcc编译器而言的。c语言的标准并没有描述实现的方式。所以,不同的编译器、不同的操作系统都可能有自己的建...
分类:
其他好文 时间:
2015-04-14 12:52:14
阅读次数:
104