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.
Follow diagonals that read 1, 2, 0, 2, 0 with at most one clockwise turn, and memoize the walk from each cell.