Available question text
Find the maximum length of a diagonal path in an n×m grid of {0,1,2} that starts at a 1 and then follows the alternating sequence 2,0,2,0,... along diagonal moves (any of the four diagonal directions), with at most one clockwise 90° turn to another diagonal while preserving the alternation. The challenge is to identify and combine alternating-value runs along diagonals to form the longest such V-shaped segment (n,m ≤ 500).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3459. Length of Longest V-Shaped Diagonal Segment
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source