Problem 3459 · Hard

Length of Longest V-Shaped Diagonal Segment

Follow diagonals that read 1, 2, 0, 2, 0 with at most one clockwise turn, and memoize the walk from each cell.

Open the interactive visualisation