Available question text
Given an integer array nums (n up to 1e5) and k ≤ min(2000, 2^n), return the k-th largest subsequence sum (the empty subsequence counts as 0). The core challenge is to avoid enumerating all 2^n sums and instead exploit the array's value structure to efficiently generate only the top-k subsequence sums.
Related questions
Continue with questions that share topics or the same question type.
- Find Sum of Array Product of Magical Sequences
Coding
- Find the Minimum Possible Sum of a Beautiful Array
Coding
- Find Triangular Sum of an Array
Coding
- Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Walk through Kadane's algorithm and explain the O(n) approach.
Coding
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 2386. Find the K-Sum of an Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source