You are given a nums.
A subsequence of nums with indices
numsnums
A single element subsequence of length
Return the maximum possible sum of a balanced subsequence of nums.
Note: A subsequence of an array is a sequence formed by deleting some or no elements without altering the relative order of the remaining elements.
Constraints:
nums.length
nums[i]
You are given a nums.
A subsequence of nums with indices
numsnums
A single element subsequence of length
Return the maximum possible sum of a balanced subsequence of nums.
Note: A subsequence of an array is a sequence formed by deleting some or no elements without altering the relative order of the remaining elements.
Constraints:
nums.length
nums[i]