LC: 562. Longest Line of Consecutive One in Matrix
https://leetcode.com/problems/longest-line-of-consecutive-one-in-matrix/
Input: mat = [[0,1,1,0],[0,1,1,0],[0,0,0,1]]
Output: 3Input: mat = [[1,1,1,1],[0,1,1,0],[0,0,0,1]]
Output: 4Last updated
https://leetcode.com/problems/longest-line-of-consecutive-one-in-matrix/
Input: mat = [[0,1,1,0],[0,1,1,0],[0,0,0,1]]
Output: 3Input: mat = [[1,1,1,1],[0,1,1,0],[0,0,0,1]]
Output: 4Last updated
class Solution {
public int longestLine(int[][] mat) {
}
}