Number of Subordinates
Given two unsorted arrays arr1 and arr2 - possibly containing duplicates - for each element in arr1 print the number of elements less than or equal to it in array arr2.
Input Format The first line contains an integer N.
Two lines follow:
the first array: N space-separated elements
the second array: N space-separated elements
Constraints N and M are at most 100'000 Each array element is at least 0 and at most 100'000.
[Read More]