Problem 562 · Medium
Find the longest line of consecutive ones in a binary matrix (horizontal, vertical, or diagonal).
Open the interactive visualisation