Available question text
Given an array of size N and an initial capacity integer K, find the maximum sum such that for each element chosen, decrement capacity by 1 and for each element not chosen, increment capacity by 1. Capacity cannot go below 0 or above K.
Related questions
Continue with questions that share topics or the same question type.
- Binary Tree Maximum Path Sum
Coding · Binary Tree · Depth-First Search · DP on Trees
- Choose K Elements With Maximum Sum
Coding
- Difference Between Maximum and Minimum Price Sum
Coding
- Find All Combinations of Bag Sizes That Sum to a Target Capacity
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
Google
Maximum Sum with Capacity Constraints
Reported Aug 29, 2024 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source