You are given an integer array nums whose length is a multiple of
In each step, you select any nums, determine the median of these nums. You repeat this process until nums is empty.
Return the maximum possible sum of the medians of all selected triplets.
Note: The median of
numbers is the value located in the middle when the numbers are sorted in nondecreasing order.
Constraints:
nums.length
nums.length
nums[i]
You are given an integer array nums whose length is a multiple of
In each step, you select any nums, determine the median of these nums. You repeat this process until nums is empty.
Return the maximum possible sum of the medians of all selected triplets.
Note: The median of
numbers is the value located in the middle when the numbers are sorted in nondecreasing order.
Constraints:
nums.length
nums.length
nums[i]