You are given a nums of length n and a non negative integer k.
For each index i where j that satisfy:
nums[j] == nums[i]
Return an integer array ans of length n, where ans[i] is the count of such indices j for each i.
Constraints:
nums.length
nums[i]
You are given a nums of length n and a non negative integer k.
For each index i where j that satisfy:
nums[j] == nums[i]
Return an integer array ans of length n, where ans[i] is the count of such indices j for each i.
Constraints:
nums.length
nums[i]