Available question text
Find the maximum length subsequence of positive integers that sums exactly to target (or return -1 if none exists). This is a 0/1 knapsack–style problem: choose a subset in order that maximizes item count under the sum constraint (feasible with DP given nums.length and target ≤ 1000).
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
Booze Allen Hamilton
Leetcode 2915. Length of the Longest Subsequence That Sums to Target
Reported May 29, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source