Available question text
Find the maximum-length subsequence whose adjacent sums all have the same parity — equivalently either all elements have the same parity or the subsequence strictly alternates parity. The challenge is to compute, while preserving order, the longest same-parity subsequence (all odds or all evens) or the longest parity-alternating subsequence and return the larger length.
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 3201. Find the Maximum Length of Valid Subsequence I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source