Given an integer array nums, return an array answer of the same length where answer[i] is the number of indices j such that:
j > i
nums[j] < nums[i]
nums[i] and nums[j] have opposite parities (one is even and the other is odd)
Constraints:
nums.length
nums[i]
Given an integer array nums, return an array answer of the same length where answer[i] is the number of indices j such that:
j > i
nums[j] < nums[i]
nums[i] and nums[j] have opposite parities (one is even and the other is odd)
Constraints:
nums.length
nums[i]