You are given an integer array nums.
Determine if it is possible to partition nums into two non empty arrays A and B such that the average value of elements in A is equal to the average value of elements in B.
Return true if such a partition exists, or false otherwise.
Note: The average of an array is defined as the sum of all its elements divided by the number of elements in the array.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
Determine if it is possible to partition nums into two non empty arrays A and B such that the average value of elements in A is equal to the average value of elements in B.
Return true if such a partition exists, or false otherwise.
Note: The average of an array is defined as the sum of all its elements divided by the number of elements in the array.
Constraints:
nums.length
nums[i]