Problem 562 · Medium

Longest Line of Consecutive One in Matrix

Find the longest line of consecutive ones in a binary matrix (horizontal, vertical, or diagonal).

Open the interactive visualisation