Available question text
Find the longest subsequence (order preserved) of nums that has at most k adjacent unequal pairs (i.e., at most k transitions between different values). This is typically solved with dynamic programming tracking positions and remaining allowed transitions (and the last chosen value) to maximize subsequence 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 3176. Find the Maximum Length of a Good Subsequence I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source