Easy
For each nums[i], count how many nums[j] (j != i) are strictly smaller. Return the counts as an array.
nums[i]
nums[j]
Input: nums = [8,1,2,2,3] Output: [4,0,1,1,3]
Input: nums = [6,5,4,8] Output: [2,1,0,3]