LeetCode二维矩阵题
文章平均质量分 72
BoomHusky
计算机专业硕士,希望自己的实力能够更强
展开
-
LeetCode | 391. Perfect Rectangle矩形覆盖难题
GivenN axis-aligned rectangles where N > 0, determine if they all together forman exact cover of a rectangular region. Eachrectangle is represented as a bottom-left point and a top-right point. Forex原创 2018-01-30 16:55:21 · 1053 阅读 · 0 评论 -
LeetCode | 48. Rotate Image矩阵翻转
Youare given an n x n 2D matrix representing an image. Rotatethe image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which means you have to modify theinput 2D matrix di原创 2018-01-26 12:48:13 · 167 阅读 · 0 评论 -
LeetCode | 764. Largest Plus Sign中等偏难 二维数组找规律题
Ina 2D grid from (0, 0) to (N-1, N-1), every cell contains a 1, except those cells in the givenlist mines which are 0. What is the largest axis-aligned plus sign of 1s contained in the grid? Return th原创 2018-01-18 17:56:51 · 1101 阅读 · 0 评论 -
LeetCode | 766. Toeplitz Matrix矩阵操作水题
766. Toeplitz MatrixAmatrix is Toeplitz if every diagonal from top-left to bottom-right has the sameelement. Nowgiven an M x N matrix, return True if and only if the matrix is Toeplitz. Examp原创 2018-02-04 15:25:28 · 209 阅读 · 0 评论