Given an integer array nums, consider an operation where the first nums are removed and their sum is calculated as the score of the operation.
You start by performing this operation once. You can continue performing operations as long as nums contains at least
Return the maximum number of operations that can be performed.
Constraints:
nums.length
nums[i]
Given an integer array nums, consider an operation where the first nums are removed and their sum is calculated as the score of the operation.
You start by performing this operation once. You can continue performing operations as long as nums contains at least
Return the maximum number of operations that can be performed.
Constraints:
nums.length
nums[i]