- Longest Line of Consecutive One in Matrix

https://leetcode.com/contest/leetcode-weekly-contest-29/problems/longest-line-of-consecutive-one-in-matrix/

Input:

[[0,1,0,1,1],

[1,1,0,0,1],

[0,0,0,1,0],

[1,0,1,1,1],

[1,0,0,0,1]]

Output: 4

Expected: 3

Thanks for your help.