码迷,mamicode.com
首页 >  
搜索关键字:spiral matrix    ( 4337个结果
A. Little Pony and Crystal Mine
Twilight Sparkle once got a crystal from the Crystal Mine. A crystal of size n (n is odd; n?>?1) is an n?×?n matrix with a diamond inscribed into it.Y...
分类:其他好文   时间:2014-08-15 20:54:59    阅读次数:210
transform 和 transition
transform的属性包括:rotate() / skew() / scale() / translate() /matrix()其中 rotate() 旋转度数,0-360 skew() 元素翻转给定的角度,根据给定的水平线(X 轴)和垂直线(Y 轴)参数 translate()元素从其...
分类:其他好文   时间:2014-08-15 17:34:59    阅读次数:182
[leetcode]Spiral Matrix
Spiral MatrixGiven a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[...
分类:其他好文   时间:2014-08-15 17:17:29    阅读次数:176
[LeetCode] Maximal Rectangle(good)
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.参考“Largest Rectangle in Histogram...
分类:其他好文   时间:2014-08-15 12:45:58    阅读次数:162
SGU 168.Matrix
时间限制:0.5s空间限制:15M题意: 给出一个N*M的矩阵A,计算矩阵B,满足B[i][j]=min{ A[x][y]:(y>=j) and ( x>=i+j-y )}Solution : 如图方式从右下角遍历矩阵,那么可令B[i][j]=min(A[i][j],B[...
分类:其他好文   时间:2014-08-15 10:40:58    阅读次数:191
Unity3D脚本中文系列教程(八)
◆static var matrix : Matrix4x4描述:设置用于渲染所有gizmos的矩阵。类方法◆Static function DrawCube(center:Vector3,size:Vector3):void描述:用center和size绘制一个立方体.function OnDra...
分类:其他好文   时间:2014-08-14 13:54:39    阅读次数:349
[leetcode]Rotate Image
Rotate ImageYou are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?CC上的原题,...
分类:其他好文   时间:2014-08-14 03:45:17    阅读次数:192
Matrix multiplication
给两个n*n的矩阵,求乘积后对3取摸的结果...
分类:其他好文   时间:2014-08-13 22:29:27    阅读次数:255
poj 3422 Kaka's Matrix Travels (费用流)
Kaka's Matrix Travels Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 7743   Accepted: 3111 Description On an N × N chessboard with a non-negative number i...
分类:其他好文   时间:2014-08-13 18:54:17    阅读次数:244
模板:使用new delete 创建二维数组
1 int **arr_matrix = new int*[n];2 for(i = 0; i < n; ++i) arr_matrix[i] = new int[n];3 //内容4 for(i = 0; i < n; ++i) delete [] arr_matrix[i];5 delete [...
分类:其他好文   时间:2014-08-13 17:32:16    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!