HF RL Explorer

Task: Efficient Array Ranking with NumPy

Task: Efficient Array Ranking with NumPy: a task in Terminal-Lego-15k (Harbor dataset). You need to implement an efficient function that computes the rank of each element in a NumPy array without sorting the array twice .

The task

You need to implement an efficient function that computes the rank of each element in a NumPy array **without sorting the array twice**.

Part of PrimeIntellect/Terminal-Lego-15k.