Given an m $ imes$ n binary matrix mat, return the length of the longest line of consecutive
The line can be horizontal, vertical, diagonal, or anti diagonal.
Constraints:
m == mat.length
n == mat[i].length
m, n
m * n
mat[i][j] is either
Given an m $ imes$ n binary matrix mat, return the length of the longest line of consecutive
The line can be horizontal, vertical, diagonal, or anti diagonal.
Constraints:
m == mat.length
n == mat[i].length
m, n
m * n
mat[i][j] is either