Given a nums of length n.
You can partition nums at any index i (where i n) into two subarrays:
nums_left, which contains elements from index i i
nums_right, which contains elements from index i to n i n).
The division score at index i is defined as the sum of:
The number of nums_left.
The number of nums_right.
Return all distinct indices i that yield the highest possible division score. You may return the indices in any order.
Note: The returned indices can be presented in any order.
Constraints:
n nums.length
n
nums[i] is either
Given a nums of length n.
You can partition nums at any index i (where i n) into two subarrays:
nums_left, which contains elements from index i i
nums_right, which contains elements from index i to n i n).
The division score at index i is defined as the sum of:
The number of nums_left.
The number of nums_right.
Return all distinct indices i that yield the highest possible division score. You may return the indices in any order.
Note: The returned indices can be presented in any order.
Constraints:
n nums.length
n
nums[i] is either