Solution: Rank Transform of an Array
C# solution for the Rank Transform of an Array problem using the Sort and Search pattern.
We'll cover the following...
We'll cover the following...
Statement
Given an integer array arr, replace each element with its rank when the distinct values of arr are sorted in strictly increasing order.
The rank rules are:
The smallest distinct value has rank
If a value is the