二维码的定义:二维码(2-dimensional bar code),是用某种特定的几何图形按一定规律在平面(二维方向上)分布的黑白相间的图形记录数据符号信息的。在许多种类的二维条码中,常用的码制有:Data Matrix, Maxi Code, Aztec, QR Code, Vericode, ...
分类:
移动开发 时间:
2015-06-17 11:20:05
阅读次数:
180
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-06-17 08:13:14
阅读次数:
112
Did you use extra space?A straight forward solution using O(mn) space is probably a bad idea.A simple improvement uses O(m+n) space, but still not the...
分类:
其他好文 时间:
2015-06-16 18:47:21
阅读次数:
90
这题很简单class Solution {public: bool searchMatrix(vector>& matrix, int target) { int m=matrix.size(); int n=matrix[0].size(); int...
分类:
其他好文 时间:
2015-06-16 12:43:05
阅读次数:
70
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-06-15 18:34:55
阅读次数:
1218
css3中的transform让我们操作变形变得很简单,诸如,translate–移动,scale–缩放,rotate–旋转,skew–斜切。这几个属性很方便,也很简单,但是其中matrix我们就不常使用了吧。-webkit-transform: matrix(1, 0, 0, 1, 100, 10...
分类:
Web程序 时间:
2015-06-15 10:57:21
阅读次数:
169
题意:
有一个初始状态全为0的矩阵,一共有三个操作
1 x1 y1 x2 y2 v:子矩阵(x1,y1,x2,y2)所有元素增加v
2 x1 y1 x2 y2 v:子矩阵(x1,y1,x2,y2)所有元素设为v
3 x1 y1 x2 y2 v:查询子矩阵(x1,y1,x2,y2)的元素和,最大值和最小值
思路:
因为总元素葛素不超过10^6,而且更新是对于连续的行进行更新,...
分类:
其他好文 时间:
2015-06-14 12:32:24
阅读次数:
169
opencv2.3.1Mat::operator IplImageCreates the IplImage header for the matrix.C++: Mat::operator IplImage() constThe operator creates the IplImage heade...
分类:
其他好文 时间:
2015-06-14 10:56:22
阅读次数:
195
Description:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?Code: 1...
分类:
其他好文 时间:
2015-06-14 10:53:39
阅读次数:
99
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer of each...
分类:
其他好文 时间:
2015-06-13 09:56:33
阅读次数:
98