在一个N * M的矩阵中,所有的元素只有0和1, 找出只包含1的最大正方形。输入为 3 31 1 11 1 10 0 1这个题与Leetcode中的Maximal Square相同。但是最开始理解错了,以为是求最大矩形这两个题类似。最大正方形: 1 #include 2 #include ...
分类:
其他好文 时间:
2015-09-30 12:38:15
阅读次数:
235
这一次主要是学习HTML列表学习效果先行(效果图太长,分了三张):代码:注:type 和start除了无序列表无效,均有效 列表 无序列表 ul是无序列表标记; li是列表项目标记; type可以规定列表前面的符号类型:disc,circle,square... 书 ...
分类:
Web程序 时间:
2015-09-29 20:21:44
阅读次数:
143
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 matr...
分类:
其他好文 时间:
2015-09-29 06:31:46
阅读次数:
173
#square { width: 100px; height: 100px; background: red;}#rectangle { width: 200px; height: 100px; background: red;}#circle { widt...
分类:
Web程序 时间:
2015-09-27 22:41:07
阅读次数:
272
Spiral Matrix IIGiven an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the...
分类:
编程语言 时间:
2015-09-27 17:21:04
阅读次数:
162
SICP 习题 2.30 要求我们完成一个叫square-tree的过程,其作用和之前的square过程差不多,square过程是针对简单列表的,将列表中的所有元素求平方,然后返回新的平方数列表。不过square不能对嵌套列表进行处理,如果列表中还包含列表的话会报错。题目要求我们实现一个square-tree的过程,当输入的列表包含另一个列表时可以对嵌套的列表进行处理,生成所有列表元素的平方数。这...
分类:
其他好文 时间:
2015-09-27 15:01:19
阅读次数:
259
1、列表li样式及取值意义 list-style-type : disc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none | armenian | cjk-ideo....
分类:
Web程序 时间:
2015-09-25 21:42:11
阅读次数:
258
题目大意;有一个广场,广场的大小是n*m, 有a*a的石砖,石砖铺广场可以比广场大,石砖不能切割。问最少需要多少个石砖。=====================================================================#include #include #in...
分类:
其他好文 时间:
2015-09-25 07:03:46
阅读次数:
148
github上的介绍,简单明了 Type-safe HTTP client for Android and Java by Square, Inc. http://square.github.io/retrofit/ 项目地址:https://github.com/square/retrofit 目...
分类:
其他好文 时间:
2015-09-23 18:43:07
阅读次数:
2570
QuestionGiven 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 follow...
分类:
其他好文 时间:
2015-09-21 09:09:16
阅读次数:
198