Count of Smaller Numbers After Self
Given an integer array nums, return an array counts where counts[i] is the number of elements strictly smaller than nums[i] to its right.
Input format
n
nums[0] nums[1] ... nums[...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
