You are given an array of integers nums of length n, indexed from n.
A subset of indices is defined as complete if the product of any two chosen indices from the subset is a perfect square. That is, for every pair of indices i and j in the subset, the product
Return the maximum sum of elements in nums corresponding to a complete subset of indices.
Constraints:
nums.length
nums[i]
You are given an array of integers nums of length n, indexed from n.
A subset of indices is defined as complete if the product of any two chosen indices from the subset is a perfect square. That is, for every pair of indices i and j in the subset, the product
Return the maximum sum of elements in nums corresponding to a complete subset of indices.
Constraints:
nums.length
nums[i]