You are given an integer array ranks, where ranks[i] represents the rank of the student at index i. A smaller value indicates a better rank.
Initially, the student at index
Return the total number of student replacements that occur.
Constraints:
ranks.length
ranks[i]
You are given an integer array ranks, where ranks[i] represents the rank of the student at index i. A smaller value indicates a better rank.
Initially, the student at index
Return the total number of student replacements that occur.
Constraints:
ranks.length
ranks[i]