Available question text
Compute the total sum of the minimum plus maximum element for every subarray of nums with length at most k. The challenge is to do this efficiently (near-linear time) for n up to 80,000 rather than enumerating all subarrays.
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 3430. Maximum and Minimum Sums of at Most Size K Subarrays
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source