LeetCode 562. Longest Line of Consecutive One in Matrix(java)

Given a 01 matrix M, find the longest line of consecutive one in the matrix. The line could be horizontal, vertical, diagonal or anti-diagonal.Exampl...

2018-02-11 15:58:57

阅读数:128

评论数:0

LeetCode 240. Search a 2D Matrix II(java)

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 i...

2018-01-26 08:49:16

阅读数:39

评论数:0

LeetCode 85. Maximal Rectangle(java)

Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and return its area.For example, given the following...

2018-01-23 06:45:56

阅读数:47

评论数:0

LeetCode 221. Maximal Square(java)

Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area.For example, given the following ma...

2018-01-22 08:24:22

阅读数:49

评论数:0

LeetCode 48. Rotate Image(java)

You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note: You have to rotate the image in-place, which...

2018-01-21 13:48:16

阅读数:46

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭